dokar3 / upnext-gpt

GPT powered playlist App for Android. Supports Apple Music, Spotify, and Youtube Music.
https://upnextgpt.vercel.app
Apache License 2.0
73 stars 9 forks source link

Add support for YT Music Revanced, and improve play button. #23

Open 0-BlackSpectrum-0 opened 1 year ago

0-BlackSpectrum-0 commented 1 year ago

As the title says, it doesn't work with YT music revanced since player is not showing up and pressing the play button in up next doesn't do anything! Also for Spotify when I press play button under up next instead of playing the indicated song it does a Spotify search which doesn't bring up the up next song.

dokar3 commented 1 year ago

Thanks for the feedback, will check that when I am free.

dokar3 commented 1 year ago

After some digging, I found out that it might not be possible to get Spotify and Youtube Music to play the song directly instead of performing a search. Google Assistant works, but it seems to have some internal calls between these two apps, not only calling the public API. Apple Music plays songs directly as it seems to follow the official API.

The official Youtube Music should at least perform a search after hitting the play button, which Revanced app are you using? Maybe it has a different package name than the official app.

0-BlackSpectrum-0 commented 1 year ago

After some digging, I found out that it might not be possible to get Spotify and Youtube Music to play the song directly instead of performing a search. Google Assistant works, but it seems to have some internal calls between these two apps, not only calling the public API. Apple Music plays songs directly as it seems to follow the official API.

The official Youtube Music should at least perform a search after hitting the play button, which Revanced app are you using? Maybe it has a different package name than the official app.

Oh! Wish it'd have worked, anyway I can send you the pkg name of revanced app, if that helps, here app.revanced.android.apps.youtube.music

dokar3 commented 1 year ago

app.revanced.android.apps.youtube.music

Okay, this looks reasonable, will try to test it and add support later.

dokar3 commented 1 year ago

New release is out, feel free to try it! YT Music ReVanced should now be supported. https://github.com/dokar3/upnext-gpt/releases/tag/v1.6