punndit_youtube 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
module PunnditYoutube
|
2
2
|
class Model
|
3
3
|
class Playlist < PunnditYoutube::Record
|
4
|
-
attr_reader :title, :subtitle, :playlist_id, :author, :thumbnail, :updated_at, :videos
|
4
|
+
attr_reader :id, :title, :subtitle, :playlist_id, :author, :thumbnail, :updated_at, :videos
|
5
5
|
#def videos
|
6
6
|
#PunnditYoutube::Parser::VideosFeedParser.new("http://gdata.youtube.com/feeds/api/playlists/#{playlist_id}?v=2").parse
|
7
7
|
#end
|
@@ -102,7 +102,7 @@ module PunnditYoutube
|
|
102
102
|
json_body = JSON.parse(response.body)
|
103
103
|
json_body['feed']['entry'].each do |x|
|
104
104
|
playlist = PunnditYoutube::Model::Playlist.new(
|
105
|
-
:id => x['
|
105
|
+
:id => x['yt$playlistId']['$t'],
|
106
106
|
:title => x['title']['$t']
|
107
107
|
)
|
108
108
|
|