youtube_query 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/youtube_query.rb +13 -1
- data/youtube_query.gemspec +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: 1e4086be4c8102614a4c65bf67958c0e296e1750
|
4
|
+
data.tar.gz: a0cf7cb6f7a6f57a344e527c98d5833452bb0ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4333f7907ba6bf6e7fcb84975deb355c4b8adc6e038a88dcaecd72028b6c8593d8ba6c03549ef56444eaa488a62559ffd1f2f1718e710f99137047a9f8f539e
|
7
|
+
data.tar.gz: 6c2f3e3e3e3bcb0623e8d240b5f7f9873463dcc397af8d050dd744ba148246e9fa56a0d59c1e809a1e1834e88c0649c06db31d116438859318148a95942ff3ab
|
data/lib/youtube_query.rb
CHANGED
@@ -25,7 +25,19 @@ class YouTubeQuery
|
|
25
25
|
:parameters => options
|
26
26
|
)
|
27
27
|
|
28
|
-
|
28
|
+
videos = []
|
29
|
+
|
30
|
+
search_response.data.items.each do |search_result|
|
31
|
+
videos.push({
|
32
|
+
:id => search_result.id.videoId,
|
33
|
+
:title => search_result.snippet.title,
|
34
|
+
:publishedAt => search_result.snippet.publishedAt,
|
35
|
+
:description => search_result.snippet.description,
|
36
|
+
:thumbnail => search_result.snippet.thumbnails.medium.url
|
37
|
+
})
|
38
|
+
end
|
39
|
+
|
40
|
+
return videos
|
29
41
|
|
30
42
|
end
|
31
43
|
|
data/youtube_query.gemspec
CHANGED