robbie 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/robbie/search.rb +6 -6
- data/lib/robbie/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12c0e2d1816880c1d923e8696c49b6f53127a4ba
|
4
|
+
data.tar.gz: b1b791f67fc964c2e888072c699d4fa3713f2f2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e0a66898c9f6ed7591310ebf7eb4f932f92b3eb562694f57832b3aac5ffa16be9ed1c9d63d3b0aa959f7156bbf0540eaeab39387313cca54e8a851d70a65cc2
|
7
|
+
data.tar.gz: ea8f29dc49eebbc8e1bedd4737df4b50f43605ccf60fa84f628f78585c70f92f3a3f56a3861e2976560ce4e24815f4a385a5f994f32107f0036f201d00aab0ad
|
data/lib/robbie/search.rb
CHANGED
@@ -14,9 +14,9 @@ module Search
|
|
14
14
|
title = URI.escape(title.first)
|
15
15
|
url = "http://www.omdbapi.com/?type=movie&r=json&s="+title
|
16
16
|
omdbData = JSON.parse(HTTP.get('http://www.omdbapi.com/?type=movie&r=json&s='+title).body)
|
17
|
-
puts "- #{omdbData["Search"][0]["Title"]} (#{omdbData["Search"][0]["Year"]}) -
|
18
|
-
puts "- #{omdbData["Search"][1]["Title"]} (#{omdbData["Search"][1]["Year"]}) -
|
19
|
-
puts "- #{omdbData["Search"][2]["Title"]} (#{omdbData["Search"][2]["Year"]}) -
|
17
|
+
puts "- #{omdbData["Search"][0]["Title"]} (#{omdbData["Search"][0]["Year"]}) - imdb.com/title/#{omdbData["Search"][0]["imdbID"]}"
|
18
|
+
puts "- #{omdbData["Search"][1]["Title"]} (#{omdbData["Search"][1]["Year"]}) - imdb.com/title/#{omdbData["Search"][1]["imdbID"]}"
|
19
|
+
puts "- #{omdbData["Search"][2]["Title"]} (#{omdbData["Search"][2]["Year"]}) - imdb.com/title/#{omdbData["Search"][2]["imdbID"]}"
|
20
20
|
end
|
21
21
|
|
22
22
|
def tv (title)
|
@@ -26,9 +26,9 @@ module Search
|
|
26
26
|
end
|
27
27
|
title = URI.escape(title.first)
|
28
28
|
omdbData = JSON.parse(HTTP.get('http://www.omdbapi.com/?type=series&r=json&s='+title).body)
|
29
|
-
puts "- #{omdbData["Search"][0]["Title"]} (#{omdbData["Search"][0]["Year"]}) /#{omdbData["Search"][0]["imdbID"]}"
|
30
|
-
puts "- #{omdbData["Search"][1]["Title"]} (#{omdbData["Search"][1]["Year"]}) /#{omdbData["Search"][1]["imdbID"]}"
|
31
|
-
puts "- #{omdbData["Search"][2]["Title"]} (#{omdbData["Search"][2]["Year"]}) /#{omdbData["Search"][2]["imdbID"]}"
|
29
|
+
puts "- #{omdbData["Search"][0]["Title"]} (#{omdbData["Search"][0]["Year"]}) - imdb.com/title/#{omdbData["Search"][0]["imdbID"]}"
|
30
|
+
puts "- #{omdbData["Search"][1]["Title"]} (#{omdbData["Search"][1]["Year"]}) - imdb.com/title/#{omdbData["Search"][1]["imdbID"]}"
|
31
|
+
puts "- #{omdbData["Search"][2]["Title"]} (#{omdbData["Search"][2]["Year"]}) - imdb.com/title/#{omdbData["Search"][2]["imdbID"]}"
|
32
32
|
end
|
33
33
|
|
34
34
|
def actor (name)
|
data/lib/robbie/version.rb
CHANGED