mherger wrote: 
> Argh... I don't understand why the token call would fail if you were
> able to authenticate. Thus just doesn't make sense...
> 
> Could you please try the following (based on your successful token call
> from a day or two ago):
> 
> > 
Code:
--------------------
  >   > 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-custom
 -n Squeezebox -c "/var/lib/squeezeboxserver/cache/spotty/097202c7" 
--save-token ~/token.json
--------------------
> > 
> 
> So instead of --get-token you'd use --save-token with a filename. This
> should store the token information in a file instead of printing it in
> the console. Please check the resulting file. Does it look good
> (similar to the output you got last time)?
> 
> And another test: please edit
> /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/API/Token.pm.
> Around line 48
> (https://github.com/michaelherger/Spotty-Plugin/blob/master/API/Token.pm#L48)
> there's the definition of "CAN_ASYNC_GET_TOKEN". Please change this
> to:
> 
> > 
Code:
--------------------
  >   > use constant CAN_ASYNC_GET_TOKEN => 0;
--------------------
> > 
> 
> Restart LMS and try again. Would that change anything?


Hello Michael,

thanks for your help an support. Here are the results:

1. The command
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-custom
-n Squeezebox -c "/var/lib/squeezeboxserver/cache/spotty/097202c7"
--save-token ~/token.json has given the same output in token.json as
printed on screen a few days ago. I can send you the file token.json if
it helps.

2. I changed "CAN_ASYNC_GET_TOKEN => 0", but a restart doesn't change
"server.log":

[20-05-02 18:02:30.2014] Slim::Networking::IO::Select::__ANON__ (130)
Error: Select task failed calling Slim::Web::HTTP::processHTTP: Not a
SCALAR reference at /usr/share/perl5/Slim/Web/HTTP.pm line 1793.
; fh=Slim::Web::HTTP::ClientConn=GLOB(0x9c9aea8)
[20-05-02 18:02:45.1994] Plugins::Spotty::API::Token::_killTokenHelper
(170) Timed out waiting for a token

Only the number changed (now 170 not 169), but I think this is because
of changing token.pm. I inserted a new line and uncommented the old line
with an #

Oliver


------------------------------------------------------------------------
Bronsky's Profile: http://forums.slimdevices.com/member.php?userid=70123
View this thread: http://forums.slimdevices.com/showthread.php?t=112084

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to