KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.14k stars 1.24k forks source link

No automatic reproduction of next songs in the Flatpak version #46

Closed ghost closed 2 years ago

ghost commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Installation Source/Method

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

ghost commented 2 years ago

When I play a playlist from my library, only the first song plays, the next song doesn't play automatically.

KRTirtho commented 2 years ago

Can you run the app from the terminal & then submit the output logs?

ghost commented 2 years ago

Can you run the app from the terminal & then submit the output logs?

Captura de pantalla de 2022-03-30 22-04-40

ghost commented 2 years ago

do you mean this?

KRTirtho commented 2 years ago

So I checked & it seems like it's only happening with the Flatpak version of Spotube. It might take a little bit of time to get fixed. Meanwhile, you can use the the Spotube AppImage

ghost commented 2 years ago

Thanks, The AppImage does not have that problem, but, instead almost on Fedora 35, for spotube (installed by Spotube AppImage) to appear in the menu you need to create a .desktop manually.

KRTirtho commented 2 years ago

Use appimage-launcher. It'll do this stuff automatically

prasanth-G24 commented 2 years ago

@KRTirtho also the shortcut for next/ previous aren't working in the flatpak version. plus it would be really helpful to have a repeat button. thank you for this wonderful app!

KRTirtho commented 2 years ago

Bad news, I just found out the audio engine used for Spotube in Linux (libwinmedia) is archived & deprecated. It hasn't been updated for at least 4 months & now it lost its compatibilty with the latest version of webkit2gtk

Audio Playback is fine mostly except there's an issue with audio file processing stream. The stream should notify when the currently playing track is completed (finished playing) but for some unknown reason it's not firing the event thus playlist position change method movePlaylistByPosition never gets called https://github.com/KRTirtho/spotube/blob/3b7f7785b66e63dfe56b07c49d009441ad56219b/lib/provider/Playback.dart#L113-L130

KRTirtho commented 2 years ago

Well, I did a workaround to fix the issue. Now the playback works fine (Gnome 42). But I won't use the same package for long & will do a permanent replacement to get rid of the issue completely

The fixed version will be available in the nightly build within couple of hours hopefully

KRTirtho commented 2 years ago

fixed in the latest release. there will be a little delay for flatpak version as it syncs the repositories once a day

PranavBhattarai commented 2 years ago

Thank you. Waiting for Flatpak release.