(01-04-2019, 09:50 PM)Tim Curtis Wrote: Hi Andy,Hi Tim,
Good analysis :-)
If you still have the original cache intact, try the following:
1. If u modified the launch params in playerlib.php then revert to original launch params and reboot
2. Save the credentials file
Code:sudo mv /var/local/www/spotify_cache/files/credentials.json ./
3. Turn on librespot from moOde UI to launch it
If it launches ok then i might have to add a "Clear cache" option.
-Tim
Sorry for the delay, but I have only just got round to trying this now. Here my notes of the results:
Check Spotify running OK.
Change playerlib.php from
Code:
' --disable-audio-cache --backend alsa --device "' . $device . '"' . // r44d audio file cache eats disk space
to
Code:
' --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "' . $device . '"' . // r44d audio file cache eats disk space
reboot
spotify fails to start.
log from librespot.
Code:
INFO:librespot: librespot (). Built on 2018-10-31. Build ID: No392Ult
DEBUG:librespot_connect::discovery: Zeroconf server listening on 0.0.0.0:0
INFO:librespot_core::session: Connecting to AP "gew1-accesspoint-b-vjv8.ap.spotify.com:4070"
thread 'main' panicked at 'Authentication failed with reason: BadCredentials', core/src/connection/mod.rs:93:21
stack backtrace:
move the cache file to clear it
Code:
sudo mv /var/local/www/spotify_cache/credentials.json /home/pi/
reboot
log from librespot:
Code:
INFO:librespot: librespot (). Built on 2018-10-31. Build ID: No392Ult
DEBUG:librespot_connect::discovery: Zeroconf server listening on 0.0.0.0:0
so all OK, pi is showing up as a spotify connect device from my tablet and i can play songs on moode using spotify connect.
So clearing out the cached credentials worked a treat.
Thanks
Andy