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