punndit_youtube 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,11 +64,11 @@ module PunnditYoutube
64
64
 
65
65
  videos = []
66
66
  json_body['feed']['entry'].each do |e|
67
- video = PunnditYoutube::Model::Video.new(
67
+ video = PunnditYoutube::Model::Video.new(
68
68
  :id => e['media$group']['yt$videoid']['$t'],
69
69
  :title => e['title']['$t'],
70
70
  :description => e['media$group']['media$description']['$t'],
71
- :comment_url => e['gd$comments']['gd$feedLink']['href'],
71
+ #:comment_url => e['gd$comments']['gd$feedLink']['href'],
72
72
  :video_url => e['media$group']['media$player']['url'],
73
73
  #:keywords => e['mediage$group']['media$keywords']['$t'], if e['mediage$group']['media$keywords']['$t']
74
74
  :thumbnails => e['media$group']['media$thumbnail'],
@@ -76,9 +76,10 @@ module PunnditYoutube
76
76
  :duration => e['media$group']['yt$duration']['seconds'],
77
77
  :uploaded => e['media$group']['yt$uploaded']['$t'],
78
78
  :uploader_id => e['media$group']['yt$uploaderId']['$t'],
79
- :stats => {:favorites => e['yt$statistics']['favoriteCount'], :view_count => e['yt$statistics']['viewCount'], :likes => e['yt$rating']['numLikes'], :dislikes => e['yt$rating']['numDislikes'], :average => e['gd$rating']['average'], :max => e['gd$rating']['max'], :min => e['gd$rating']['min'], :numRaters => e['gd$rating']['numRaters'], :rel => e['gd$rating']['rel']},
79
+ #:stats => {:favorites => e['yt$statistics']['favoriteCount'], :view_count => e['yt$statistics']['viewCount'], :likes => e['yt$rating']['numLikes'], :dislikes => e['yt$rating']['numDislikes'], :average => e['gd$rating']['average'], :max => e['gd$rating']['max'], :min => e['gd$rating']['min'], :numRaters => e['gd$rating']['numRaters'], :rel => e['gd$rating']['rel']},
80
80
  :updated_at => e['updated']['$t']
81
81
  )
82
+
82
83
  videos.push(video)
83
84
  end
84
85
 
@@ -1,3 +1,3 @@
1
1
  module PunnditYoutube
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -9,7 +9,7 @@ describe PunnditYoutube do
9
9
 
10
10
  it "should find playlist" do
11
11
  client = TestClient.new
12
- playlist = client.should_find_playlist("PLA2F6CB53687F34AA")
12
+ playlist = client.should_find_playlist("PLcVJOCiw9dSygpwuY-s--czq5YGqGrbIY")
13
13
  playlist.title.should_not be_empty
14
14
  end
15
15
 
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-31 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec