Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jukebox mode skipping over songs #234

Open
clach04 opened this issue Jun 30, 2022 · 2 comments
Open

jukebox mode skipping over songs #234

clach04 opened this issue Jun 30, 2022 · 2 comments

Comments

@clach04
Copy link

clach04 commented Jun 30, 2022

I've been experimenting with jukebox mode and Android Apps:

  • DSub
  • Ultrasonic

I've experienced some (more than annoying) issues on the phone (for example hangs, switching between jukebox and local tricky) as well as issues where the jukebox mode will play the first track in the playlist and then immediately play the next track. At this point I'm unclear if this is a supysonic issue or the client.

I need some help/guidance:

  • any recommendations for a client (even if just for testing) for jukebox mode that any can recommend that they have had good results with? If not I may try and reduce this down to a python/curl script that just makes REST requests.
  • any recommendations on the level of tracing that would help diagnose this?

Thanks for making supysonic available!

@spl0k
Copy link
Owner

spl0k commented Jul 2, 2022

Hello.
I don't remember seeing the jukebox skipping to the next track immediately after the first one. I tested it just now with DSub and it seems to work just fine.

To try to diagnose this the first thing I'll look for are the request the web server is receiving. I you see a request with action=skip in the query string right after you start playing the client might be to blame here.
Unfortunately the jukebox mode doesn't have any logging set up. If you have any Python knowledge and want to try to identify the issue, I'll suggest looking at the supysonic/jukebox.py file and especially the __play_file() and __play_thread() methods. The first one is the one that starts the process actually playing the track while the other handles its lifetime, potentially killing it when the user asks to skip and/or starting the next file in the playlist when the previous one finished playing.

@clach04
Copy link
Author

clach04 commented Jul 2, 2022

Thanks!

For some reason I couldn't find a quick an easy way to get URL tracing out of the server, so I took your advice and had a look at api/jukebox.py. I added a quick debug print and Ultrasonic ends up:

  • adding a set
  • doing a stop
  • then a skip

So far its the only Android client I can locate that supports Jukebox box (neither DSub nor the original 2018 Subsonic Music Streamer) appear to have that as an option. I probably should try a desktop/command-line/web one for next set of testing.

So far Supysonic has been the easiest streamer to setup! I hit a bunch of issues with Airsonic-Advanced (performance of standalone war is terrible). But I've been having more luck with Beets (and the same command line tool I'm using with Supysonic) for casting to Chromecast (DSub works to some degree with casting).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants