I tried reproducing the spotty commands from `server.log`, although I
can only find the one to obtain tokens and not the streaming command - I
got that from using `ps`
Ah, right. The playback is "hidden" inside the transcoding framework.
But you shouldn't need to get a token if you've been using Spotty
through LMS recently. It would be picked up from the cache folder.
$ sudo -u squeezeboxserver
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SpottBin/i386-linux/spotty-x86_64
-n Squeezebox -c /var/lib/squeezeboxserver/cache/spotty/02270050
--single-track spotify://track:6fenHIxXuuzKB55wY4WCHP --bitrate 320
--disable-discovery --disable-audio-cache --pass-through
This just seems to hang forever. If I do `sudo lsof | grep -i spotty`,
there is an entry like this:
Hmm... what if you left out the --pass-through parameter? And make sure
you re-direct output, as the output will mess up your terminal window badly.
I feel sure there is an error message somewhere that I just can't see,
I'm not so sure about that, tbh. You could try to build your own binary
with debug messages enabled. But I don't think it's too verbose.
which is why I'd still like to unpack the Spotty layer and make the
underlying API call directly with more basic tools like `curl`. I might
be able to figure this out by picking through the librespot code but it
certainly might save me some time if you have any suggestions :)
AFAIK Spotify still doesn't use straight http requests to serve the
audio tracks. And they wouldn't like you pulling files that way -
they'll try hard to prevent you from seeing what's going on :-).
At the end of this series of debugging, it managed to play one track
from a playlist before dying again. Combed through the logs looking for
anything that made this one play look different without success :(
That's really, really odd. I mean, I've seen failure, too. Sometimes
there seem to be issues on Spotify's end, causing failure to play music
for a few minutes or an hour. But for days? I haven't seen this yet.
I might have asked this before, but you're not trying to do this in a VM
or Docker? Would you have another machine to run the same tests (with
correct paths, of course)?
--
Michael
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins