kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

unique_id for favorited videos #43

Closed cpt-pete closed 12 years ago

cpt-pete commented 12 years ago

I have many examples where favorite videos are coming back with a video_id without the word 'videos' in it, so the unique_id is returning nil. Maybe YT just changed this.

video_id = "tag:youtube.com,2008:favorite:vjVQa1PpcFPfyaKcZJIbwsy1k2RZ5xS2z93alVDym6E" 
video_id[/videos\/([^<]+)/, 1] || video_id[/video\:([^<]+)/, 1]
=> nil

Cheers

cpt-pete commented 12 years ago

Think this maybe more of an issue of YouTube feeds not working how I expect. I'm trying to get the video_id for a favorited video, only place I can see it is in video.media_content.url. I'll post on google group.