royw-imdb 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/README +7 -2
- data/lib/imdb/imdb_movie.rb +9 -1
- metadata +1 -1
data/README
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
|
2
|
+
ImdbMovie Jet Pilot
|
3
|
+
- should query IMDB url
|
4
|
+
- should convert to xml
|
5
|
+
- should convert to yaml
|
6
|
+
|
2
7
|
ImdbMovie Indiana Jones and the Last Crusade
|
3
8
|
- should query IMDB url
|
4
9
|
- should get the title
|
@@ -84,6 +89,6 @@ String unescape_html
|
|
84
89
|
String strip_tags
|
85
90
|
- should strip HTML tags
|
86
91
|
|
87
|
-
Finished in 3.
|
92
|
+
Finished in 3.710128 seconds
|
88
93
|
|
89
|
-
|
94
|
+
64 examples, 0 failures
|
data/lib/imdb/imdb_movie.rb
CHANGED
@@ -176,7 +176,15 @@ class ImdbMovie
|
|
176
176
|
[:title, :directors, :poster_url, :tiny_poster_url, :poster, :rating, :cast_members,
|
177
177
|
:writers, :year, :genres, :plot, :tagline, :aspect_ratio, :length, :release_date,
|
178
178
|
:countries, :languages, :color, :company, :photos, :raw_title, :release_year,
|
179
|
-
:also_known_as, :mpaa, :certifications
|
179
|
+
:also_known_as, :mpaa, :certifications
|
180
|
+
].each do |sym|
|
181
|
+
begin
|
182
|
+
value = send(sym.to_s)
|
183
|
+
hash[sym.to_s] = value unless value.nil?
|
184
|
+
rescue Exception => e
|
185
|
+
puts "Error getting data for hash for #{sym} - #{e.to_s}"
|
186
|
+
end
|
187
|
+
end
|
180
188
|
hash
|
181
189
|
end
|
182
190
|
|