SEPIA-Framework / sepia-docs

Documentation and Wiki for SEPIA. Please post your questions and bug-reports here in the issues section! Thank you :-)
https://sepia-framework.github.io/
236 stars 16 forks source link

Youtube Music Service not working #93

Closed KMuellr closed 2 years ago

KMuellr commented 3 years ago

First off: I really love this project! So thanks for all the work you put into it. However a few weeks ago the YouTube music service stopped working for me.

Describe the bug The YouTube music service does not start a video anymore.

SEPIA client and server versions

To Reproduce Command SEPIA to play a song.

Expected behavior The requested music video should be played.

Additional context I think the issue might be caused by a change in the YouTube-API as it seems that SEPIA tries to load the video from the URL "https://www.youtube.com/embed?autoplay=1&enablejsapi=1&playsinline=1&iv_load_policy=3&fs=1&listType=search&list=ABCD", which however returns the status 410. From trying around I found that the root of the problem might be the "listType=search" argument, as leaving it out results in a successfull http request.

fquirin commented 3 years ago

Welcome and thanks for your comments 🙂. I've noticed the same issue a few days ago and did some research. It seems that YouTube did some undocumented changes to the URL parameters and removed the search feature 😕 ... but ... there is another option via the iframe API that basically does the same and is still working.

I'm planning to rewrite this and add a general interface for iframe card widgets. If everything goes as planned it should be available later this month 🤞.

The other option is to integrate the YouTube API server-side but this requires users to create an API key ... the result would probably more powerful but the process of obtaining API keys is super annoying 😬.

Cu, Florian

KMuellr commented 3 years ago

I'm planning to rewrite this and add a general interface for iframe card widgets. If everything goes as planned it should be available later this month 🤞.

Great! Then I'm looking forward to the next update :grin:

fquirin commented 2 years ago

Unfortunately I couldn't save the old YouTube feature because Google removed the 'search' URL parameter entirely :disappointed: , but SEPIA v2.6.0 (client v0.24.0) has a completely new media-player with better support for YouTube URLs and a new service that supports YouTube API keys for search :old_key: