kylejginavan/youtube_it — Issue #43: unique_id for favorited videos
Author: petergledhill
Created: 2011-12-30 19:57:27+00:00
State: open

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