You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using youtube_g to retrieve users' favorites. But when I specify a page that is greater than 1, I get an error. This is illustrated below:
>> client = YouTubeG::Client.new
=> #<YouTubeG::Client:0x1110368>
>> vids = client.videos_by(:favorites, :user => 'alexanderkahn', :page => 1)
=> #<YouTubeG::Response::VideoSearch:0x1cf7960.......
>> vids = client.videos_by(:favorites, :user => 'alexanderkahn', :page => 2)
NoMethodError: undefined method `text' for nil:NilClass
from /opt/local/lib/ruby/gems/1.8/gems/tmm1-youtube-g-0.5.0/lib/youtube_g/parser.rb:46:in `parse_entry'
from /opt/local/lib/ruby/gems/1.8/gems/tmm1-youtube-g-0.5.0/lib/youtube_g/parser.rb:155:in `parse_content'
from /opt/local/lib/ruby/1.8/rexml/element.rb:891:in `each'
from /opt/local/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
from /opt/local/lib/ruby/1.8/rexml/element.rb:891:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/tmm1-youtube-g-0.5.0/lib/youtube_g/parser.rb:154:in `parse_content'
from /opt/local/lib/ruby/gems/1.8/gems/tmm1-youtube-g-0.5.0/lib/youtube_g/parser.rb:9:in `parse'
from /opt/local/lib/ruby/gems/1.8/gems/tmm1-youtube-g-0.5.0/lib/youtube_g/client.rb:58:in `videos_by'
from (irb):7
It appears that specifying a page greater than one works with API methods other than :favorites, but I haven't tested this extensively. Any information on this issue would be appreciated.
The text was updated successfully, but these errors were encountered:
I'm using youtube_g to retrieve users' favorites. But when I specify a page that is greater than 1, I get an error. This is illustrated below:
It appears that specifying a page greater than one works with API methods other than :favorites, but I haven't tested this extensively. Any information on this issue would be appreciated.
The text was updated successfully, but these errors were encountered: