Giter VIP home page Giter VIP logo

spotty-plugin's Introduction

The Spotty Spotify implementation for Logitech Media Server

Spotty is a somewhat spotty implementation of Spotify Connect for the Squeezebox and other compatible music players running Squeezelite or Squeezeplay connecting to a Logitech Media Server.

Spotty exposes your Squeezebox as a Spotify Connect client. Alternatively you can use any Squeezebox Controller, compatible mobile app or the Logitech Media Server web interface to play music from Spotify.

The Spotty plugin is known to run fine on recent Windows, macOS, and Linux on x86_64, and many ARM platforms (including Raspberry Pi, many NAS devices, rock64). Some platforms which are not supported out of the box can probably be supported by compiling the spotty helper application yourself - or some friendly community member. It's based on the great librespot project.

Configuration

Most aspects of the Spotty configuration can be configured in LMS directly, in Settings/Advanced/Spotty.

IMPORTANT: on some systems you might need to tweak a firewall, or configure your container to make things work. Please make sure you allow Spotty, and in particular its helper application which you can find in its Bin folder, can reach the internet on ports 80, 443, and 4070! You might have to add 5353/UDP to the list if you experience problems seeing your devices as Spotify Connect endpoints.

Disclaimer

Using the spotty helper and the librespot code to connect to Spotify's API is probably forbidden by them. Use at your own risk.

spotty-plugin's People

Contributors

blackfiction avatar cdrummond avatar darblarg avatar franck-berry avatar mherger avatar michaelherger avatar mipa87 avatar mkonig avatar scelfo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spotty-plugin's Issues

Anyone lost Spotify Connect?

I'm running Spotty on LMS on a piCoreplayer.

About 3 days ago my player vanished as an option as a Spotify Connect for devices on the network.

Spotty itself still works in LMS.

I've tried disabling it and re-enabling it, but not much else

When group names are too long, players don't appear in Spotify Connect

If I group together enough players with long names, the group stops appearing in Spotify as a Spotify Connect player.

I was able to reproduce this by creating a group of 6 devices with long names such as "Receiver - Upstairs", "Receiver - Downstairs", "Living Room Speakers" and three other long names. To confirm that it's the length of player names, I tried renaming those to "U", "D", "LR, etc and then I was able to group 10 devices and have the group show up in Spotify as a Spotify Connect device.

I didn't iterate on my test to try to narrow in on the limit for the length of the group. Does this sound like something you've seen before? For now I can get by with short device names in LMS but it would be a better experience if Spotty simply truncated the group names. On my iPhone, Spotify seems to only show ~35 characters before it truncates in the UI with "...". Could that truncation be done automatically in Spotty when composing the group name?

Spotty doesn’t count royalties for music streaming

Firtst of all, congratulations for the plugin. I’ve tried different solutions to stream music through a raspberry pi zero w and this is the best implementation I found.

Next, I notice that playing music through the spotty app doesn’t count as stream for spotify streaming service. I’m the owner of a clothing store and an artist too, and I used to play my songs at my shop.
I’m sure about what i’m saying because i tried this for over one month, and this is bad cause it’s the only issue I found.

Spotty / Spotify / oggvorbis

My old SqueezePlayer2 denies playing some files from Spotify, however others work fine. This is in the log:

[21-07-23 14:41:53.9687] Slim::Player::Squeezebox2::statHandler (149) Error: 00:04:20:05:ac:38: Decoder does not support file format, code 103
[

The display shortly says "Not a Vorbis file". Which I belive all files from Spotify still are? Or are they moving some stuff to new formats?

Edit: actually this is the same on my touch and my radio once I wiped out the cache folders.

[Feature Request] Philips Hue + Spotify (Spotty)

Hi Michael,

vorab vielen Dank für deine Mühen deiner ganzen Plugins!
Wäre es möglich wenn man direkt von Squeezelite / LMS via Spotty Musik hört die Integration zu nutzen?
Im Moment geht das nur z.B. über die App via Smartphone.

Viele Grüße!

Spotty on ARMv5 (Synology)

Hi,

Here I am back again after a few years with an update on building spotty for ARMv5!

My 2 year old LMS+Spotty setup was broken, probably because of some update to the Synology, and I spent the afternoon on getting Spotty to work again with the latest LMS v8. I couldn't get my old steps, that you have copied to README.md, working, so I had to restart. In the end it was easy :)

Here are my steps, can you update the README.md ?

I'm on Ubuntu-20.04 within WSL 2 on Windows.

  • Install latest Rust using rustup with the default settings: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Update environment: source $HOME/.cargo/env
  • Add armv5te target to rust: rustup target add armv5te-unknown-linux-musleabi
  • Install gcc for arm: sudo apt install gcc-arm-linux-gnueabi
  • mkdir ~/.cargo
  • Put the following in ~/.cargo/config:
[target.armv5te-unknown-linux-musleabi]
linker = "arm-linux-gnueabi-gcc"
  • Get spotty source: git clone https://github.com/michaelherger/spotty
  • Build: cargo build --target=armv5te-unknown-linux-musleabi --release

Spotify connect: devices disappear in Spotify

Devices activated for Spotify connect disappear very soon and cannot be re-found in Spotify app (iOS). Only after checking and unchecking of Spotify connect for a device in Spotty or a newstart of the server brings back some of the devices for a short time. Running logitech media server on mac mini, newest version (8.1.1 - 1610364019). Behavior is the same regardless wether the Spotty Connect helper app is checked or not.

Unable to see or use any playlist

Since a week or so, I am not able to see my own playlists or playlists created by other users. Albums still work though. I have updated to the last version today (v4.4.2), but it is still broken.

All playlists show up, but are empty and cannot be played or added to the current selection.

image

Playlist Transfer is only possible when Spotify Connect is enabled

When the following option is checked in the Spotty settings:

Don't announce Squeezebox players running in Spotify Connect mode in your network. Check this option if you don't want your Spotify Connect enabled Squeezebox player to show up in all Spotify apps in your network.

The Playlist Transfer option doesn't do anything. If Spotify Connect needs to be enabled for this feature to work, it might make sense to hide the option if it is not enabled.

Unexpected duplicate setting for ReplayGain

Volume normalisation is generally controlled by the following setting:

  • Settings → Player → Audio → Volume Adjustment/Replay Gain

With Spotty, it’s controlled by:

  • Settings → Player → Spotty Spotify for Squeezebox → Volume Adjustment/Replay Gain

It took me a while to find this additional setting; I wasn’t expecting it to exist, and it felt unnecessary that I had to tell LMS that I wanted the same behaviour in two different places.

Is there a need for this? Is there anyone who would want to set these two things differently? Unless there's a use case that I can't see, it seems like it would be simpler to remove the Spotify-specific setting and have Spotty observe the general setting instead.

Name of connected player changes a lot when devices are synced.

When devices are synced the player that shows up in the Spotify app has a name build from the names of the synced devices.
The player disappears and appears quite often.
When this happens the name always changes. The order how the names of the devices are concatenated seems to be kind of random.

Example:
3 devices: Name1, Name2, Name3
Player in Spotify shows up as: Name1, Name2 & Name3
Later it shows up as: Name2, Name1 & Name3
etc

Spotty ain't working on lms

Hi, I'm running Logitech Media Server version 8.1.1 on Ubuntu 20.04 LTS

Somehow my spotify connection isn't working properly, it says failed to get access token and when I disable the asynchronous token refresh call it just times out.

Logs say this:

[21-07-22 20:51:23.7829] Slim::Networking::IO::Select::ANON (130) Error: Select task failed calling Slim::Web::HTTP::processHTTP: Can't use string (" 0: 0x82ef7e1 -
") as a HASH ref while "strict refs" in use at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/API/Token.pm line 141.
; fh=Slim::Web::HTTP::ClientConn=GLOB(0x564fded11298)

Spotify connect volume at startup

A question regarding volume at first connection of Spotify connect
I have my players set to 20% volume on startup which works well for me & wife.
From the Spotify app on iPhone when I first go to adjust the volume it jumps to 50% volume even if I start with low volume on the app.
I am using alsa / pcm volume control.
how can I get this to not jump to a higher volume when I first adjust from the apps / Spotify connect
Many thanks all

Can't add individual songs

Hi There,

I use spotty for ~2 years now. I was never able to add individual songs from the search results.
Anything I can try / do ?

Versions

Spotty plugin

I can hardly reproduce the versions of the spotty plugin, bcs I installed them via the logitechmediaserver web frontend. I updated often and I can reproduce the problem on "Spotty (v4.0.1)

LMS

I had these versions that show the problem:

  • logitechmediaserver_7.9.0~1487582706
  • logitechmediaserver_7.9.1
  • logitechmediaserver_7.9.2~1564788734
  • logitechmediaserver_8.0.0~1583405189

Hardware

The hardware was armv7 (raspi-3) and an Intel Atom

To reproduce

I use Squeeze Commanderv0.9.6.4 (and didn't report a bug there, because very similar behaviour works elsewhere in that app). I'll send them a link to this bug, too.

  • play some music
  • In add music, I navigate via
    home => spotty => Search => <Band Name> => Artists => <Band Name> => <Top Tracks>
  • There I add a few tracks "to end" (either via long-press, or via clicking on one and "add to end")
  • At some point this stops working (can be verified by clicking on item and seeing "empty" and by seeing that the item isn't actually added tot he playlist)
  • This will work again, when pausing the playback and navigating back one level and forward again (but only while playback is paused).

This is probably a weird error deep in LMS, however, it does not happen at all, when browsing music stored on the LMS. One obvious difference is that tracks in the "browsing files on LMS view" are shown without the ">" which indicates a submenu, while the "top tracks" in spotty are shown with the ">". Surely there are reasons for this, but I'd suspect such a bug in where that difference lies.

As I said, this is probably borderline between spotty-plugin and squeeze commander, I'm sending this bug as a cc to info [at] ce-data.de

Too much default logging

Spotty is incredibly chatty at the INFOLOG level. For example DaemonManager.pm
This is logged to journald and /var/log/daemon.log
Using --noinfolog in /etc/default/logitechmediaserver did not help:

squeeze+ 1136226  0.3  0.4 314412 265128 ?       Ss   19:59   0:24 /usr/bin/perl /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --charset utf8 --noinfolog

Still gives:

Nov 04 19:59:52 nasty systemd[1]: Started Logitech Media Server.
Nov 04 19:59:53 nasty squeezeboxserver[1136226]: [21-11-04 19:59:52.7831] main::init (390) Starting Logitech Media Server (v8.3.0, 1635857800, Tue Nov  2 15:14:58 CET 2021) perl 
Nov 04 19:59:59 nasty squeezeboxserver[1136226]: [21-11-04 19:59:54.6202] Slim::Web::Cometd::handler (421) errorNeedsClient: 10.1.2.3, 00:04:20:2c:xx:xx, status, -, 10, menu
Nov 04 20:03:53 nasty squeezeboxserver[1148211]: [21-11-04 20:03:53.8284] main::main (206) Starting Logitech Media Server scanner (v8.3.0, 1635857800, Tue Nov  2 15:14:58 CET 202
Nov 04 20:03:54 nasty squeezeboxserver[1148211]: [21-11-04 20:03:54.2041] Slim::Music::Import::runImporter (578) Starting Plugins::Spotty::Importer scan
Nov 04 20:03:54 nasty squeezeboxserver[1148211]: [21-11-04 20:03:54.2064] Plugins::Spotty::Importer::scanAlbums (106) Reading albums...
Nov 04 20:03:54 nasty squeezeboxserver[1148211]: [21-11-04 20:03:54.2093] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/Insta
Nov 04 20:03:54 nasty squeezeboxserver[1148211]: [21-11-04 20:03:54.2154] Plugins::Spotty::Helper::helperCheck (118) Found helper capabilities table: do {

etc

Spotty doesn't provide a URL when used by LMS CLI commands

Using the following query for getting all "What's new" playlist, doesn't list the URLs for the respective playlists.

spotty items 0 100 want_url:1 item_id:1

Similar using the query for listing the tracks in the first playlist also doesn't show the URL for the tracks:

spotty items 0 100 want_url:1 item_id:1.1

Bitrate selection from the Settings page in LMS is not used by the plugin

Looking through the code while trying to find a solution to specifying a static listening port, I noticed that the bitrate seems to be hardcoded in Daemon.pm

On line 67 in Daemon.pm you have this:

	my @helperArgs = (
		'-c', $self->cache,
		'-n', $self->name,
		'--disable-audio-cache',
		'--bitrate', 96,
		'--player-mac', $self->mac,
		'--lms', Slim::Utils::Network::serverAddr() . ':' . preferences('server')->get('httpport'),
	);

Shouldn't that be:

	my @helperArgs = (
		'-c', $self->cache,
		'-n', $self->name,
		'--disable-audio-cache',
		'--bitrate', $prefs->get('bitrate'),
		'--player-mac', $self->mac,
		'--lms', Slim::Utils::Network::serverAddr() . ':' . preferences('server')->get('httpport'),
	);

I'm no expert, so please forgive me if I'm wrong.

connect devices disappear from spotify app when starting group playback

This is more a feature request, than a real issue:

I have two standalone players which are also part of a group. As soon as I start playback on the group player, both devices disappear from the Spotify Connect devices list. So it is impossible for me, to switch playback to one of these devices without switching to the web interface and unsyncing the from the group.

I think this behavior is intended, because the group player internally syncs the both standalone players, so the synced players are not broadcasted as connect players anymore, until they are unsynced.

Maybe it would be possible to implement this as an optional feature: still broadcast the standalone players to spotify connect, even if they are synced to a group. If playback is started on one of these devices over Spotify Connect, stop group playback, unsync the device from the group and start playback on this device.

Spotty stops playback at end of track

System Details

  • Latest release version of spotty
  • Running on aarch64

Problem Statement

When streaming to a squeezelite device using spotty, once a song reaches the end, playback stops and the Spotify app gets disconnected from the spotify connect source. I can hit play again and re-select the device and it works fine, but playback always stops at the end of the track.

Sometimes toggling shuffle seems to fix this, other times it doesn't.

Any logs I can look at to figure out what's going on? My Squeezebox logs are empty.

Search results are limited to max 50 results

When using the search for searching some generic terms e.g. "rock", the track list is limited to 56 items (50 tracks + 6 folders for categories). All categories (e.g. artists) are also limited to 50 results.

Can this limitation be lifted ? It also looks like the count: property for such searches (using the CLI/jsonRPC API) always returns the requested length (if it is smaller than the limit of 50 results) instead of the count which available in total.

request the first 5 results -> count == 5
request the first 50 results -> count == 50
request the first 100 results -> count == 50

[Feature Request] Volume Level Option

The official spotify client provides a volume level option, which seems to actually fetch the tracks with a different volume level and not simply process them locally.

It looks like this:
image

When using Spotty in combination with local music which has been mp3gained to 89dB it's overall not a very pleasant experience. The "replay gain" LMS feature also doesn't really help here it seems.

Therefore I think that this would be a great addition to the plugin

need at least helper version

Hello,
i use LMS in a docker and have a problem to use the spotty plugin.

The Docker is runnign in a bridge mode on port 9009:9000 doliana/logitech-media-server
I activate the spotty plugin and restart.
Then i have the error on the spotty-plugin-options:

Beim Ausführen der Spotty Helfer-Anwendung ist ein Fehler aufgetreten.  Vermutlich wird diese auf ihrem System nicht unterstützt. Bitte wenden  Sie sich an mich, unter Angabe der folgenden Plattform-Informationen:
Betriebssystem: Debian / x86_64-linux

Ordner für Hilfsprogramme:
/usr/share/squeezeboxserver/Bin/x86_64-linux
/usr/share/squeezeboxserver/Bin/i386-linux
/usr/share/squeezeboxserver/Bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux
/srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin
ldd (Debian GLIBC 2.24-11+deb9u4) 2.24

In the serverlog i see some errors after i aktivate them more then ones:

[20-03-25 23:53:59.0233] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-25 23:53:59.9744] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:17:11.4709] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:11.4914] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:11.4920] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:11.4923] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:17:53.9974] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:54.0196] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:54.0203] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:54.0205] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:17:55.0018] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:55.0020] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:19:50.6397] Slim::Utils::PluginDownloader::uninstall (63) scheduling uninstall of TimeSpeller on restart
[20-03-26 00:19:57.0614] Slim::Utils::PluginManager::shutdownPlugins (410) Shutting down plugins...
[20-03-26 00:19:58.1191] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:19:59.0246] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:20:24.2565] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:21:12.2678] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:21:13.4342] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:21:15.5781] Slim::Plugin::Extensions::Settings::handler (35) attempt to set params with band random number - ignoring
[20-03-26 00:21:25.6839] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:25.6842] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:25.7680] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:25.7684] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:25.7996] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:25.7999] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:25.8002] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:21:54.4945] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:54.4949] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:54.5805] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:54.5809] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:54.6131] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:54.6134] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:54.6138] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:22:31.3906] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:23:04.5174] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:23:30.0498] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:23:31.2208] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:24:36.5522] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:24:36.5526] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:24:36.6398] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:24:36.6401] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:24:36.6717] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:24:36.6720] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:24:36.6723] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0[20[20-03-25 23:53:59.0233] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-25 23:53:59.9744] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:17:11.4709] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:11.4914] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:11.4920] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:11.4923] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:17:53.9974] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:54.0196] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:54.0203] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:54.0205] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:17:55.0018] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:17:55.0020] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:19:50.6397] Slim::Utils::PluginDownloader::uninstall (63) scheduling uninstall of TimeSpeller on restart
[20-03-26 00:19:57.0614] Slim::Utils::PluginManager::shutdownPlugins (410) Shutting down plugins...
[20-03-26 00:19:58.1191] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:19:59.0246] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:20:24.2565] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:21:12.2678] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:21:13.4342] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:21:15.5781] Slim::Plugin::Extensions::Settings::handler (35) attempt to set params with band random number - ignoring
[20-03-26 00:21:25.6839] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:25.6842] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:25.7680] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:25.7684] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:25.7996] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:25.7999] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:25.8002] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:21:54.4945] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:54.4949] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:54.5805] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:54.5809] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:54.6131] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:21:54.6134] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:21:54.6138] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:22:31.3906] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:23:04.5174] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:23:30.0498] main::init (387) Starting Logitech Media Server (v7.9.2, 1574315728, Thu Nov 21 07:17:11 CET 2019) perl 5.024001 - x86_64-linux-gnu-thread-multi
[20-03-26 00:23:31.2208] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0
[20-03-26 00:24:36.5522] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:24:36.5526] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:24:36.6398] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:24:36.6401] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:24:36.6717] Plugins::Spotty::Helper::get (53) Didn't find Spotty helper application!
[20-03-26 00:24:36.6720] Plugins::Spotty::Helper::get (54) Last error: 
sh: 1: /srv/squeezebox/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty: Permission denied
[20-03-26 00:24:36.6723] Plugins::Spotty::Connect::canSpotifyConnect (84) Cannot support Spotty Connect, need at least helper version 0.12.0

I have tray also a LMS docker with a ubuntu base from apnar/logitech-media-server withe the same settings and have the same error with ....ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27

whats the problam and how can i fix them? or is it a bug on docker LMS in bridge mode

Enable adding new titles to collaborative playlists

Spotify offers a feature called "Collaborative playlists".

They show up on all acounts, that subscribed them, but it is not possible to modify them from another account within the spotty plugin (other than the original one that invented the collaborative playlist). In the original apps this is possible.

My setup:

  • LMS on Raspberry Pi
  • Clients: Logitech radios and Raspberry Pis

Spotify Connect on second Account/Device wont work after setting Client ID

Steps to reproduce

  1. Set Client ID with first Spotify Account
  2. Connect to Spotty - Connect on a LMS Speaker with the Spotty Plugin with second Account (Girlfriend's Acc)
  3. Spotify wont play

Current behaviour (bug)

No Music is playing on the Speaker, if you try to play using the second Account.
Only if you play it through the first Account with the Client ID.

Expected behaviour (correct)

Music should play on the Speaker with both Accounts.

Relevant logs and/or media (optional)

While playing with the first Account, no relevant log entries happen.
While trying to play with the second Account alot of these messages come up:

[21-06-04 16:02:58.8204] Plugins::Spotty::API::__ANON__ (1424) API call: me/player/devices
[21-06-04 16:02:58.8221] Plugins::Spotty::API::__ANON__ (1428) error: 403 Forbidden

Other comment (optional)

Without setting a Client ID, Spotify Connect works for multiple Accounts, but i get the error: 429 unknown,
the playback sometimes randomly stops after songs.

Also when setting the Client ID every logged in Spotify Account in Spotty (on the Plugin Page at the Top)
change their name to the Spotify Account on which the Client ID was created.

LMS 8.0.1 Library rescan failed due error shown by spotty

Hi,

my LMS 8.0.1 on ubuntu 20.04 cannot rescan the library recently, the error message from scanner.log seems to indicate the Spotty-Plugin:

[21-01-03 09:27:51.8591] Slim::Music::Import::runImporter (577) Starting Plugins::Spotty::Importer scan [21-01-03 09:27:52.5699] main::main (338) Error: Failed when running main scan: [Can't use string ("Aborted (core dumped)") as a HASH ref while "strict refs" in use at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/API/Token.pm line 141. ] [21-01-03 09:27:52.5702] main::main (339) Error: Skipping post-process & Not updating lastRescanTime!

Spotty v.4.4.6

can't install

I have just recently attempted install of your plugin on my truenas. When I opened the settings for the plugin it gave the following message;

There has been a problem running the Spotty helper application. Most likely your operating system and/or platform is not supported. Please report the following details to me:

Operating system: freebsd / amd64-freebsd

Helper Applications Folder:
/usr/local/share/logitechmediaserver/Bin
/sbin
/bin
/usr/sbin
/usr/bin
/usr/local/sbin
/usr/local/bin
//bin
/usr/libexec
/var/lib/logitechmediaserver/cache/InstalledPlugins/Plugins/Spotty/Bin

Account: Import:

So i guess i'm just following instructions.

Synology Diskstation 218 - ldd is missing

Hello!

I have trouble getting spotty to run for LMS on Synology.

Error Message

This is what I get in the settings page of the plugin.

There has been a problem running the Spotty helper application. Most likely your operating system and/or platform is not supported. Please report the following details to me:

Operating system: Synology DiskStation / unknown

Helper Applications Folder:
Information is not avaialable. Please update Logitech Media Server to 7.7.6 or more recent.
sh: ldd: command not found

So I tried to get ldd (which is a command from glibc/glibc-common. But for the life of me, I couldn't find a deb package to install using dpkg. (Synology uses a custom linux with proprietary package managers only)

ok, so I tried to search for solutions online:

I have located the plugin folder and tried to follow the instructions as described here:
https://forums.slimdevices.com/showthread.php?110455-Announce-Spotty-2-8-x-Spotify-Connect-for-your-Squeezebox
Downloading and moving the spotty-custom to /volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/Spotty/Bin# did not help :( (I restarted LMS and then the NAS after this action).

Additional info:

uname -a
Linux Bastet 4.4.59+ #23824 SMP Tue Feb 12 16:50:48 CST 2019 aarch64 GNU/Linux synology_rtd1296_ds218

cat /proc/cpuinfo

cat /proc/cpuinfo  
processor       : 0
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Thank you in advance!

experiencing great slowdown when using big playlists

since version 2.8.1 i'm experiencing a great slowdown in
performance when i'm using a great playlist of 460 numbers.

this is on a raspberry pi v2.

I don't remember having this issues before this version.

I mean slowdown in the web gui, which is how i use it.

Spotty tracks are shown as URL in Albums and Playlists when added to favorites

Hi Michael.

I guess i found a bug
I was playing with your great LMS plugin and had the idea to add some playlists / and or / albums to LMS favorites (as it is allowed).
I found that the result was that the track information were shown as urls and not the track names.
Are you aware of this ?

here 2 examples : one with a playlist , one with an album
i use the skin material on iphone, but it iw the same with standard LMS skin on desktop
Image
Image-1
Image-2

no podcast playback possible

When I try to play podcasts over Spotify Connect, all my players are greyed out. When I use the squeezebox web interface I cannot find any podcasts within spotty.

I have Spotify Premium and playing music works fine.

Is this a limitation of spotty or may it be another issue / misconfiguration on my sever?

CLI with playlist link doesnt work

Hi Michael,

I'm tring to change playlists with my ioBroker instance with the "pathURL" attribute but that doesnt work.

image

then i tried to change the playlist with the CLI that also didnt work. I used: playlist play spotify://playlist:

what I'm doing wrong?

High Number of v1/me/player/volume calls

Steps to reproduce

  1. Set client ID
  2. let it play for a bit (2 hours - 5 hours)
  3. sometimes change the volume (don't even know if that matters)
  4. Music stops playing with error 429 in the log

Current behaviour (bug)

Absurd high number of calls to the spotify developer endpoint v1/me/player/volume
which results in a error 429 and a timeout / aka no more playing for today

Expected behaviour (correct)

The Plugin should not connect to the v1/me/player/volume endpoint so often.

Relevant logs and/or media (optional)

As you can see only the v1/me/player/volume endpoint is called that often, and its not because i change the volume so often.
In the days between those calls i wasn't home and before the 06/17 I had the issue #38.

Spotify Developer Page - Number of Requests/Endpoint - `v1/me/player/volume` only ![Endpoint](https://user-images.githubusercontent.com/10178218/123542473-29934080-d74a-11eb-8d7d-7c749c6e04f9.PNG)
Spotify Developer Page - Number of Requests/Endpoint - All endpoints ![all_endpoints](https://user-images.githubusercontent.com/10178218/123542472-28faaa00-d74a-11eb-8f22-403a8a72ada9.PNG)

I don't see any relevant log entries in the log besides the error: 429 when I can't play anymore.

Other comment (optional)

Maybe this issue also is why for some people settings a client ID is necessary in the first place,
while its not necessary with other solutions (e.g. vollibrespot)?

Irregular rebuffering/pauses/stopping at end of

Currently running LMS in a docker (Ubuntu 20.04) on Xeon E3-1230v2. Players are RPi2, running Max2Play. Internet is a reasonably reliable 100+Mbps fibre. I'm a long-time Squeeze user since SB3 days (2005).
I've very recently started using Spotty. It will run fine for hours. Then, for a track or two, it will pause frequently, sometimes reporting 'rebuffering', sometimes not. Often, skipping to the next track, or the beginning of current track, will make the issue go away.
Sometimes, playback will stop at the end of a track and has to be restarted by skipping to next track.

Are these known issues, and is there a fix, or do I need to post some log files (from where?)?

No such issues appear when running Spotify on a FireCube v2.

Not all playable Items can be saved as a Favorite

When listing an Artist (Account -> Artist -> select any), it provides a folder for Albums, a playlist of all tracks and the artist-radio.

All albums and the playlist for all tracks as well as the artist-radio can be played and works great when directly selecting them to be played, but only an Album can be saved into the favorite list, while the other two can't (it doesn't provide a menu and with that also doesn't provide a URL using the CLI).

Is this intended ?

Spotify Family - Only 1 smartphone can see LMS device - Synology Docker

Hi,

I tried a lot and but I am not able to use the same LMS device with multiple smarthphones in Spotify. Only 1 smartphone can see the LMS device in the Spotify app.
Is there a way to make it running?

  • I added 2 accounts (both in same family membership)
  • I use "Spotify Client ID" (both accounts are added in the developer portal)
  • I only checked "Überwache die Verbindung der Spotty Connect Helferanwendung mit den Spotify Servern. Dies kann helfen, wenn Spotty Connect aktivierte Geräte regelmässig aus den Spotify-Anwendungen verschwinden."

I use:

  • LMS version: 8.2.0 - 1627922070 (via Docker)
  • Spotty Plugin version: v4.7.1
  • Squeezelite version: v1.9.9-1391-pCP
    (but same behavior also in older versions)

Any help would be great :)

Clients show up as one device in spotify connect

I have 4 clients and enabled spotify connect for all of them.
In spotify I can only select them all at once. They seem to be one device for spotify.
Would it be possible to make each of them appear as one single device?

Spotty and Spotfire Family

Hi,

First of all, thanks for the great plug-in, have been using it for a long time!

I have a strange problem. We have 3 squeezeboxes connected to LMS 7.9.3(have tried 8.0.0 as well). We also have a Denon receiver with Spotfire Connect.
We recently moved to a Spotfire Family subscription, and now we are having problems getting Spotty to work. We have 4 Spotfire accounts under a Family subscription. Let's call them U1, U2, U3, U4

No matter what settings I set for the Spotty plug-in this is what I see:

  • When only adding the Family coordinator account(U1) to Spotty, U1 can see all 3 SB's in the "Connect to device" list in Spotify. Non of the other 3 users can see the 3 SB's, but all can see the Denon receiver.
  • Adding 1 or more of the others users to Spotty, no one can see any of the 3 SB's, but all can still see Denon
  • After adding multiple users to Spotty, I can go to the LMS web interface and go to "Home->My apps->Spotty->USER->Playlist" and the SB chosen will appear in the connect list of the USER chosen in the path(e.g U1).
    • If I switch to another SB and go to the same path, that SB also appears in the list of the chosen USER.
    • If I choose another USER(e.g U2) in the path, then that SB will disappear from the list of U1 and appear in the list of U2

I've tried all I can think of, but it's the same result. Seems Spotify connect can only work for 1 user a a time? As soon as you use the LMS Web interface to browse anything under Spotty, the Spotify connect option disappears from 1 user and appears for the other.
Is this as designed, an error, or something in my settings that I'm doing wrong?

I've also tried following this advice:
https://forums.slimdevices.com/showthread.php?107683-Spotty-and-Family-Account-Assign-User-toplayer which kind of solves my issue, as I can assign 1 SB to 1 user, but I'd like all 4 users to be able to connect to all 3 SB's, is this possible?

Thanks in advance for any help.

Installing on LMS 8.0 on Mac OSX?

OK, I cloned this repo into /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Plugin/Spotty & it shows up as an installed plugin in the settings UI, but the name is SPOTTY_PLUGIN_NAME and there is no settings link in the right hand column, and then sure enough when I look at the logs I see

Slim::Display::Display::string (887) Error: missing string PLUGIN_SPOTTY_NAME

So I guess there is at least one additional step I need to perform in order for everything to be happy?

[suggestions]

Hello,

Thank you by heart for your wonderful job.

I am wondering if it could be possible to implent these :

  1. Now I can add song to playlist of Spotify. Could be possible to add a song to liked playlist?
  2. Can I sort liked artists / liked songs by recently added?
  3. Spotify has added recently on pc a separate section with liked tracks of artists (on android there was always). Could we see on artists items, except of albums, top songs etc our liked tracks of the artist?

Getting "Timeout waiting for a token" after some time of running Logitech Media Server with spotty plugin

When I newly start Logitech Media Server, the spotty plugin works fine. After some time (a few hours max), however, the spotty plugin is no longer working and the log shows "Timeout waiting for a token".

Once I reboot my raspberrypi, the spotty plugin runs again fine (for some time).

I am running Logitech Media Server on raspberrypi:

Logitech Media Server Version: 7.9.3 - 1597753178 @ Sun Aug 23 19:23:14 CEST 2020
Hostname: raspberrypi
IP: 192.168.2.4
HTTP-Port: 9000
BS: Debian - DE - utf8
Plattform: armv8l-linux
Perl-Version: 5.20.2 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 0.95
IO::Socket::SSL: 2.002
Database version: DBD::SQLite 1.58 (sqlite 3.22.0)

Player Sync > Spotify Connect Disconnects

Hello,

If I play with Spotify Connect in one room and then synchronize the player with another, the connection is disconnected.

I think that's because the name is changed with the synchronization.
Is there a way to turn off the name change?

regards

One Spotty-Squeezebox Player is not listed in list of Spotify Connect devices

Kia ora, Michael, from NZ 👋

Love your work, thanks for all you do!

I have a Squeezbox Classic hooked up to my Marantz receiver, and Squeezelite-X running on my Windows desktop. When I fire up the Spotify Windows application, I am able to connect to the Squeezelite-X player, and successfully play music on it. However, the Squeezebox Classic doesn't appear in the list of Spotify Connect devices, and I am not able to get it to play via Spotty.

I've ensured that the Spotty plugin is set up and enabled on both players, but no joy.

I think the problem might be related to an error in Plugins::Spotty::AccountHelper::renameCacheFolder, as it is the only time I see "error" in the server log (and I have the Spotty logging dialed up to "Debug" level:

[21-05-14 14:03:44.4580] Plugins::Spotty::Connect::DaemonManager::initHelpers (90) Checking Spotty Connect helper daemons...
[21-05-14 14:03:44.4592] Plugins::Spotty::Connect::DaemonManager::initHelpers (120) This is the sync group's master, or a standalone player with Spotify Connect enabled: 00:04:20:07:8d:0f
[21-05-14 14:03:44.4602] Plugins::Spotty::Connect::DaemonManager::initHelpers (120) This is the sync group's master, or a standalone player with Spotify Connect enabled: 38:2c:4a:6d:61:c6
[21-05-14 14:04:02.5777] Plugins::Spotty::ProtocolHandler::getMetadataFor (181) Returning metadata cached in song object for spotify://track:5hnyJvgoWiQUYZttV4wXy6
[21-05-14 14:04:02.5812] Plugins::Spotty::ProtocolHandler::getMetadataFor (182) {
  album        => "Eyes Open",
  artist       => "Snow Patrol",
  bitrate      => "160k VBR",
  cover        => "https://i.scdn.co/image/ab67616d0000b2735da2756220da9b6f17924f8f",
  duration     => "267.96",
  icon         => "/html/images/cover.png",
  originalType => "Ogg Vorbis (Spotify)",
  title        => "Chasing Cars",
  type         => "Ogg Vorbis (Spotify)",
  url          => "spotify://track:5hnyJvgoWiQUYZttV4wXy6",
}
[21-05-14 14:04:02.5869] Plugins::Spotty::ProtocolHandler::getMetadataFor (181) Returning metadata cached in song object for spotify://track:5hnyJvgoWiQUYZttV4wXy6
[21-05-14 14:04:02.5903] Plugins::Spotty::ProtocolHandler::getMetadataFor (182) {
  album        => "Eyes Open",
  artist       => "Snow Patrol",
  bitrate      => "160k VBR",
  cover        => "https://i.scdn.co/image/ab67616d0000b2735da2756220da9b6f17924f8f",
  duration     => "267.96",
  icon         => "/html/images/cover.png",
  originalType => "Ogg Vorbis (Spotify)",
  title        => "Chasing Cars",
  type         => "Ogg Vorbis (Spotify)",
  url          => "spotify://track:5hnyJvgoWiQUYZttV4wXy6",
}
[21-05-14 14:04:21.8081] Plugins::Spotty::AccountHelper::renameCacheFolder (145) Trying to rename __AUTHENTICATE__ to 
[21-05-14 14:04:21.8109] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Error: No newId found in '__AUTHENTICATE__'
[21-05-14 14:04:21.8152] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/config/cache/InstalledPlugins/Plugins/Spotty/AccountHelper.pm line 147)
   frame 1: Plugins::Spotty::AccountHelper::renameCacheFolder (/config/cache/InstalledPlugins/Plugins/Spotty/Settings/Auth.pm line 174)
   frame 2: Plugins::Spotty::Settings::Auth::cleanup (/config/cache/InstalledPlugins/Plugins/Spotty/Settings.pm line 59)
   frame 3: Plugins::Spotty::Settings::handler (/lms/Slim/Web/HTTP.pm line 1155)
   frame 4: Slim::Web::HTTP::generateHTTPResponse (/lms/Slim/Web/HTTP.pm line 912)
   frame 5: Slim::Web::HTTP::processURL (/lms/Slim/Web/HTTP.pm line 707)
   frame 6: Slim::Web::HTTP::processHTTP (/lms/Slim/Networking/IO/Select.pm line 122)
   frame 7: (eval) (/lms/Slim/Networking/IO/Select.pm line 118)
   frame 8: Slim::Networking::IO::Select::__ANON__ (/lms/Slim/Networking/IO/Select.pm line 167)
   frame 9: (eval) (/lms/Slim/Networking/IO/Select.pm line 167)
   frame 10: Slim::Networking::IO::Select::loop (/lms/slimserver.pl line 729)
   frame 11: main::idle (/lms/slimserver.pl line 679)
   frame 12: main::main (/lms/slimserver.pl line 1216)

[21-05-14 14:04:21.8256] Plugins::Spotty::AccountHelper::renameCacheFolder (145) Trying to rename __AUTHENTICATE__ to 
[21-05-14 14:04:21.8282] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Error: No newId found in '__AUTHENTICATE__'
[21-05-14 14:04:21.8316] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/config/cache/InstalledPlugins/Plugins/Spotty/AccountHelper.pm line 147)
   frame 1: Plugins::Spotty::AccountHelper::renameCacheFolder (/config/cache/InstalledPlugins/Plugins/Spotty/Settings/Auth.pm line 174)
   frame 2: Plugins::Spotty::Settings::Auth::cleanup (/config/cache/InstalledPlugins/Plugins/Spotty/Settings/Auth.pm line 184)
   frame 3: Plugins::Spotty::Settings::Auth::shutdownHelper (/config/cache/InstalledPlugins/Plugins/Spotty/Settings.pm line 147)
   frame 4: Plugins::Spotty::Settings::handler (/lms/Slim/Web/HTTP.pm line 1155)
   frame 5: Slim::Web::HTTP::generateHTTPResponse (/lms/Slim/Web/HTTP.pm line 912)
   frame 6: Slim::Web::HTTP::processURL (/lms/Slim/Web/HTTP.pm line 707)
   frame 7: Slim::Web::HTTP::processHTTP (/lms/Slim/Networking/IO/Select.pm line 122)
   frame 8: (eval) (/lms/Slim/Networking/IO/Select.pm line 118)
   frame 9: Slim::Networking::IO::Select::__ANON__ (/lms/Slim/Networking/IO/Select.pm line 167)
   frame 10: (eval) (/lms/Slim/Networking/IO/Select.pm line 167)
   frame 11: Slim::Networking::IO::Select::loop (/lms/slimserver.pl line 729)
   frame 12: main::idle (/lms/slimserver.pl line 679)
   frame 13: main::main (/lms/slimserver.pl line 1216)

[21-05-14 14:04:21.8471] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /config/cache/InstalledPlugins/Plugins/Spotty/Bin/aarch64-linux/spotty
[21-05-14 14:04:21.9940] Plugins::Spotty::Helper::_findBin (195) Found helper application: /config/cache/InstalledPlugins/Plugins/Spotty/Bin/aarch64-linux/spotty
[21-05-14 14:04:21.9962] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /config/cache/InstalledPlugins/Plugins/Spotty/Bin/arm-linux/spotty-hf
[21-05-14 14:04:32.6102] Plugins::Spotty::ProtocolHandler::getMetadataFor (181) Returning metadata cached in song object for spotify://track:5hnyJvgoWiQUYZttV4wXy6
[21-05-14 14:04:32.6161] Plugins::Spotty::ProtocolHandler::getMetadataFor (182) {
  album        => "Eyes Open",
  artist       => "Snow Patrol",
  bitrate      => "160k VBR",
  cover        => "https://i.scdn.co/image/ab67616d0000b2735da2756220da9b6f17924f8f",
  duration     => "267.96",
  icon         => "/html/images/cover.png",
  originalType => "Ogg Vorbis (Spotify)",
  title        => "Chasing Cars",
  type         => "Ogg Vorbis (Spotify)",
  url          => "spotify://track:5hnyJvgoWiQUYZttV4wXy6",
}
[21-05-14 14:04:32.6251] Plugins::Spotty::ProtocolHandler::getMetadataFor (181) Returning metadata cached in song object for spotify://track:5hnyJvgoWiQUYZttV4wXy6
[21-05-14 14:04:32.6304] Plugins::Spotty::ProtocolHandler::getMetadataFor (182) {
  album        => "Eyes Open",
  artist       => "Snow Patrol",
  bitrate      => "160k VBR",
  cover        => "https://i.scdn.co/image/ab67616d0000b2735da2756220da9b6f17924f8f",
  duration     => "267.96",
  icon         => "/html/images/cover.png",
  originalType => "Ogg Vorbis (Spotify)",
  title        => "Chasing Cars",
  type         => "Ogg Vorbis (Spotify)",
  url          => "spotify://track:5hnyJvgoWiQUYZttV4wXy6",
}
[21-05-14 14:04:40.1824] Plugins::Spotty::AccountHelper::renameCacheFolder (145) Trying to rename __AUTHENTICATE__ to 
[21-05-14 14:04:40.1850] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Error: No newId found in '__AUTHENTICATE__'
[21-05-14 14:04:40.1878] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/config/cache/InstalledPlugins/Plugins/Spotty/AccountHelper.pm line 147)
   frame 1: Plugins::Spotty::AccountHelper::renameCacheFolder (/config/cache/InstalledPlugins/Plugins/Spotty/Settings/Auth.pm line 174)
   frame 2: Plugins::Spotty::Settings::Auth::cleanup (/config/cache/InstalledPlugins/Plugins/Spotty/Settings.pm line 59)
   frame 3: Plugins::Spotty::Settings::handler (/lms/Slim/Web/HTTP.pm line 1155)
   frame 4: Slim::Web::HTTP::generateHTTPResponse (/lms/Slim/Web/HTTP.pm line 912)
   frame 5: Slim::Web::HTTP::processURL (/lms/Slim/Web/HTTP.pm line 707)
   frame 6: Slim::Web::HTTP::processHTTP (/lms/Slim/Networking/IO/Select.pm line 122)
   frame 7: (eval) (/lms/Slim/Networking/IO/Select.pm line 118)
   frame 8: Slim::Networking::IO::Select::__ANON__ (/lms/Slim/Networking/IO/Select.pm line 167)
   frame 9: (eval) (/lms/Slim/Networking/IO/Select.pm line 167)
   frame 10: Slim::Networking::IO::Select::loop (/lms/slimserver.pl line 729)
   frame 11: main::idle (/lms/slimserver.pl line 679)
   frame 12: main::main (/lms/slimserver.pl line 1216)

(and that Plugins::Spotty::AccountHelper::renameCacheFolder problem keeps reoccurring.)

I don't know where the best place is to report issues -- here, or at forums.slimdevices.com -- but I'm hoping this is as good a place as any.

Any idea what might be going on, and how I might be able to fix it?

[Feature Request] Search support for Spotify URIs

Currently, it's not possible to paste a spotify URI into the search bar to get the Track/Album/Playlist.

Example: spotify:track:3AVZudpwC1DkkYJH65OGC4

image

If searched by name and added to the playlist, the track ID from the URI can be found in the info section:
image

Spotty and Sonos/UPnP

I've just re-installed LMS (Perl update hosed my old Synology installation, so now it's on a stable machine) and have a newer version of Spotty than I used to (the Spotify Connect stuff is the notable difference I see).

Logitech Media Server Version: 8.2.0 - 1620630276 @ Mon May 10 09:41:53 CEST 2021
Spotty (v4.4.9)

I have two players configured:

  • a Sonos One, connected via UPnP
  • my laptop, using squeezelite

First up: playing music from my local library is flawless to both destinations. Playing from Spotty to my laptop is also flawless (so far).

Now...when playing to the Sonos One, it's pretty...spotty (couldn't resist). If I just start playing a playlist or song, nothing happens. Press Play/Pause, nothing. If I seek in the track, it seems to magically start working. I cannot skip to the next track, however. It was advancing to the next track when the current track finished playback, but now it seems to not do so. To sum up - I can only play one song at a time, and I have to seek past 0:00 in that song for it to start playing.

This behavior seems to be present either in Spotify Connect mode or non-Connect mode (Side note - the player shows up in my Spotify app, regardless of whether or not I check the Don't announce... checkbox - another bug, maybe?). I don't see anything interesting in debug level logs - only the noisy metadata operations.

Any clues here? My Perl's rusty, but I'm happy to help debug if you have any ideas where to begin investigating. Thanks!

Account Rate Limiting makes use of spotify (multi account) difficult

In the last few weeks, spotify seems to have added restrictive rate limitings. I constantly run into problems selecting/finding music, as loading the spotty app fails due to missing access tokens, browsing album lists works only after trying for several times before something is displayed etc.

My setup:

  • raspPi running the logitech media server
  • 5 Radios connected to play music (3 Logitech Radios, 1 Raspi running the server, 1 extra)
  • 4 Spotify accounts connected in the spotty app (all within a family account)

I followed the suggestion to create a spotify client ID, but that didn't help

Some of the example errors in the radio-display or the spotty-settings (non-exhaustive):

  • Konnte keinen Access Token erhalten
  • Zugriffsrate überschritten für: me/albums?limit=50&offset=250; nächster Versuch in 8 Sekunden
  • Zugriffsrate überschritten für: me/player/devices; nächster Versuch in 16 Sekunden.

My setup worked like an absolute charm for the last years (thanks allot for the brilliant work). Is spotify going into a direction of making such things impossible, or is there a way to fix this for spotty and LMS?

Greets, fred

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.