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['id']['$t'],
105
+ :id => x['yt$playlistId']['$t'],
106
106
  :title => x['title']['$t']
107
107
  )
108
108
 
@@ -1,3 +1,3 @@
1
1
  module PunnditYoutube
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punndit_youtube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: