omelete 0.0.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/omelete/detailed_page.rb +10 -10
- data/lib/version.rb +1 -1
- metadata +1 -1
|
@@ -54,19 +54,19 @@ module Omelete
|
|
|
54
54
|
showtimes = []
|
|
55
55
|
mt = ""
|
|
56
56
|
obs = ""
|
|
57
|
-
@page.parser.xpath('//div[@id="content-left"]/div[@class="grid_8"]').
|
|
58
|
-
if div_child.node_name == "div"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
end
|
|
57
|
+
@page.parser.xpath('//div[@id="content-left"]/div[@class="grid_8"]/div').each do |div_child|
|
|
58
|
+
# if div_child.node_name == "div"
|
|
59
|
+
mt = div_child.search('h2').first.text.gsub("\n", "").strip if div_child.attribute("class").value == "programacao_cinema"
|
|
60
|
+
if div_child.attribute("class").value == "programacao_horarios"
|
|
61
|
+
div_child.search('tr').each do |tr_doc|
|
|
62
|
+
unless tr_doc.content.include?("Sala")
|
|
63
|
+
obs = div_child.search('td[@colspan="3"]').first.content if div_child.search('td[@colspan="3"]').first
|
|
64
|
+
sat = ShowtimeAndTheater.new tr_doc
|
|
65
|
+
showtimes << sat.create_showtime_with(mt,movie,obs)
|
|
67
66
|
end
|
|
68
67
|
end
|
|
69
68
|
end
|
|
69
|
+
# end
|
|
70
70
|
end
|
|
71
71
|
showtimes
|
|
72
72
|
end
|
data/lib/version.rb
CHANGED