google_movies47 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google_movies47/parser.rb +2 -4
- data/lib/google_movies47/version.rb +1 -1
- metadata +1 -1
@@ -20,13 +20,12 @@ module GoogleMovies47
|
|
20
20
|
"//div[@class='movie_results']/div[@class='theater' and .//h2/a]"
|
21
21
|
)
|
22
22
|
|
23
|
-
|
23
|
+
@theaters = []
|
24
24
|
theater_elements.each do |t|
|
25
25
|
theater_name = t.search(".//h2[@class='name']/a/text()").text
|
26
26
|
theater_info = t.search(".//div[@class='info']/text()").text
|
27
27
|
showtimes = []
|
28
28
|
@movies = []
|
29
|
-
@theaters = []
|
30
29
|
movie_elements = t.search(".//div[@class='showtimes']//div[@class='movie']")
|
31
30
|
x = 0
|
32
31
|
movie_elements.each do |m|
|
@@ -47,8 +46,7 @@ module GoogleMovies47
|
|
47
46
|
showtimes << { :name => movie_name, :language => movie_info[:language], :times => times }
|
48
47
|
end
|
49
48
|
|
50
|
-
@theaters
|
51
|
-
y = y + 1
|
49
|
+
@theaters << { :name => theater_name, :info => theater_info, :movies => showtimes }
|
52
50
|
end
|
53
51
|
|
54
52
|
end
|