google_movies47 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google_movies47/parser.rb +1 -3
- data/lib/google_movies47/version.rb +1 -1
- metadata +1 -1
@@ -19,7 +19,6 @@ module GoogleMovies47
|
|
19
19
|
theater_elements = doc.xpath(
|
20
20
|
"//div[@class='movie_results']/div[@class='theater' and .//h2/a]"
|
21
21
|
)
|
22
|
-
x = 0
|
23
22
|
y = 0
|
24
23
|
theater_elements.each do |t|
|
25
24
|
theater_name = t.search(".//h2[@class='name']/a/text()").text
|
@@ -41,8 +40,7 @@ module GoogleMovies47
|
|
41
40
|
times << time
|
42
41
|
end
|
43
42
|
|
44
|
-
showtimes
|
45
|
-
x = x + 1
|
43
|
+
showtimes << { :name => movie_name, :language => movie_info[:language], :times => times }
|
46
44
|
end
|
47
45
|
|
48
46
|
@theaters[y] = { :name => theater_name, :info => theater_info, :movies => showtimes }
|