kyle8998 / Vynchronize

Watch videos with friends online with the new real time video synchronization platform
https://www.vynchronize.com/
MIT License
1.17k stars 182 forks source link

Add support for YouTube URLs with extra query string params #117

Closed rpeg closed 5 years ago

rpeg commented 5 years ago

YouTube video URLs with query string params beyond 'v=' are not picked up by 'Add to Queue'. It should be a simple enough matter to parse out the ID from any arbitrary YouTube video URL. Extra params are appended to videos in playlists. For this particular example, I was copying the link directly from my Liked Videos.

Works: https://www.youtube.com/watch?v=kVOb2YHJsoI https://youtu.be/kVOb2YHJsoI kVOb2YHJsoI

Doesn't work: https://www.youtube.com/watch?v=kVOb2YHJsoI&list=LL6BzmDu5szxqlDZc3VwgYmQ&index=4&t=341s

rpeg commented 5 years ago

Update: Looks like the problem was simply that my Liked Videos playlist was private, and so the YouTube API didn't return a relevant response.