ronjouch / dailygrooves

Daily Grooves is a simple music discovery service, featuring a single YouTube playlist refreshed & shuffled daily from hand-picked sources.
http://www.dailygrooves.org
MIT License
5 stars 0 forks source link

Don't add/play non-embeddable/playable videos to the playlist, or automatically skip them #7

Closed ronjouch closed 8 years ago

ronjouch commented 9 years ago

In order to avoid this: selection_001

Technical possibilities at http://stackoverflow.com/questions/3899387/how-do-i-use-the-youtube-api-to-check-if-a-video-is-embeddable

Also (client side) need to cover country-dependent restrictions, like https://www.youtube.com/watch?v=isToG5_U1Ug from https://www.youtube.com/watch?v=isToG5_U1Ug&index=18&list=PLyO3GKHGN0e0zoOOIdkqekjx0MVqtKg1A :

dg

Another example: https://www.youtube.com/watch?v=jHaFvZa8giY&index=3&list=PLyO3GKHGN0e3f9rUYSD1VmYw2A9YEuYnz copyrightgrounds

Maybe do it client-side with testing (private api) player.getAvailableQualityLevels() === [] ? Latest example: item 22 of playlist 2015-02-13.

ronjouch commented 8 years ago

Fixed by 66b27fdc6b5615c15f66efea45ffa9962351a666 using the onError event.