Announcement

Collapse
No announcement yet.

[Announce] Spotty 4.0 - integrate local library with your Spotify collection (LMS 8+)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Nomen Nescio
    replied
    I don't think so.
    At around 8 I noticed the menu was back in business.
    I set than online playlist integration off.

    Click image for larger version

Name:	Screenshot_20230919-072728.png
Views:	44
Size:	214.2 KB
ID:	1649814

    This morning Spotty is still ok.

    Leave a comment:


  • mherger
    replied
    Could something in your infrastructure be blocking some accesses temporarily?

    Leave a comment:


  • Nomen Nescio
    replied
    Last time, in spring, I posted a message overhere and you responded 😂
    It's magic I guess but today it worked....

    For a moment I saw the accounts but it's over again.
    Click image for larger version

Name:	Screenshot_20230918-183237.png
Views:	55
Size:	143.9 KB
ID:	1649756
    Last edited by Nomen Nescio; 2023-09-18, 17:35.

    Leave a comment:


  • mherger
    replied
    Originally posted by Nomen Nescio
    Again I have the "no access token" message in LMS
    LMS is installed on windows 10
    spotty.exe and LMS are granted access in the Defender Firewall
    removed all spottify accounts from pugin page
    removed spotty from server
    restarted LMS and Windows machine
    reinstalled spotty plugin and made a new cliënt id.
    ​
    What do you mean by "again"? Did you have the problem before? And if so, what did you do back then to fix it? Did you try to run the command to get the token in a command window (enable debug logging for plugin.spotify to find the command in the server.log)?

    And make sure you've paid the latest bill for Spotify Premium .

    Leave a comment:


  • Nomen Nescio
    replied
    Again I have the "no access token" message in LMS
    LMS is installed on windows 10
    spotty.exe and LMS are granted access in the Defender Firewall
    removed all spottify accounts from pugin page
    removed spotty from server
    restarted LMS and Windows machine
    reinstalled spotty plugin and made a new cliënt id.

    log:

    [23-09-17 13:25:09.5230] main::init (380) Starting Logitech Media Server (v8.4.0, 1694578754, Wed Sep 13 09:48:02 WEDT 2023) perl 5.014001 - MSWin32-x86-multi-thread
    [23-09-17 13:25:11.2984] Slim::Utils::Misc::msg (1321) Warning: [13:25:11.2979] DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /Slim/Schema.pm line 1907
    [23-09-17 13:26:02.0525] Plugins::Spotty::OPML::__ANON__ (198) Failed to get featured playlists and/or token - do not continue​

    Leave a comment:


  • wnshall
    replied
    Originally posted by wnshall

    I don't think I have a firewall blocking connections. Would running spotty.exe from the command line as I did above return "authorized" if I did? In any case, I'll double check.

    I tried both using the spotify app (on a laptop) and entering the credentials manually (on the spotty screen in LMS) to authorize, but had the same issue. What seems strange to me is that the authorization process seems to succeed, the dialog box in LMS goes away and an entry for my account appears at the top of the spotty settings page. But going to the spotify menu item returns the error. Is it possible for the authorization to succeed but interacting with spotify still fails?
    As usual, turned out to be operator error. Somehow I had added a second Spotify account, which isn't a premium account. Once I removed that, everything worked fine. Yay for the Spotty app!

    Leave a comment:


  • mherger
    replied
    Authentication uses a Spotify custom protocol which doesn't use the same ports as the web UI. But then it's less likely that that port would be open, while standard web ports would be closed. What LMS version are you using? Please enable logging for network.asynchttp before trying to use Spotty, then provide the full server.log.zip after you failed to use it (https://www.dropbox.com/request/T3RctyzGgNg0oFDubq6a).

    Leave a comment:


  • wnshall
    replied
    Originally posted by mherger
    Are you using a firewall which might block outgoing connections? You also seem to be authenticating with credentials rather than the Spotify app (there are -u and -p parameters). Can you remove the account info and try again with the app rather than entering the password?
    I don't think I have a firewall blocking connections. Would running spotty.exe from the command line as I did above return "authorized" if I did? In any case, I'll double check.

    I tried both using the spotify app (on a laptop) and entering the credentials manually (on the spotty screen in LMS) to authorize, but had the same issue. What seems strange to me is that the authorization process seems to succeed, the dialog box in LMS goes away and an entry for my account appears at the top of the spotty settings page. But going to the spotify menu item returns the error. Is it possible for the authorization to succeed but interacting with spotify still fails?

    Leave a comment:


  • mherger
    replied
    Are you using a firewall which might block outgoing connections? You also seem to be authenticating with credentials rather than the Spotify app (there are -u and -p parameters). Can you remove the account info and try again with the app rather than entering the password?

    Leave a comment:


  • wnshall
    replied
    I am trying to setup Spotty for the first time. I just installed LMS 8.3.1 (I had been running 7.9 for a loooong time), on a Win7 PC. Installed the Spotty plugin, go to the Advanced tab in Settings, choose Spotty menu, click on the "add" button to authorize an account, from the Spotify app on my laptop I play a song, and use the device list to "authorize" LMS. The menu in LMS disappears and I now have a named account listed on the Advanced Spotty settings page. However, when I go to Home/Spotty, I get the "failed to get access token" error.

    I enabled Spotty logging, and find this in the log file:

    Code:
    [23-09-05 11:23:25.4987] Plugins::Spotty::Settings::Auth::handler (69) Trying to authenticate using: "C:\PROGRA~3\SQUEEZ~1\Cache\INSTAL~1\Plugins\Spotty\Bin\MSWIN3~1\spotty.exe" -c "C:\ProgramData\Squeezebox\Cache\spotty\__AUTHENTICATE__" -n "Spotify Authorization (Bartok)" -u "****" -p "********" -a --disable-discovery --ap-port 12321 --verbose
    [23-09-05 11:23:26.0522] Plugins::Spotty::Settings::Auth::handler (74) Got response: authorized
    [23-09-05 11:23:26.0530] Plugins::Spotty::Settings::Auth::shutdownHelper (193) Quitting authentication daemon
    [23-09-05 11:23:27.0551] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Trying to rename __AUTHENTICATE__ to 4756f604
    [23-09-05 11:23:27.0583] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Trying to rename __AUTHENTICATE__ to
    [23-09-05 11:23:27.0625] Plugins::Spotty::API::Token::_logCommand (155) Trying to get access token: C:\PROGRA~3\SQUEEZ~1\Cache\INSTAL~1\Plugins\Spotty\Bin\MSWIN3~1\spotty.exe -n Squeezebox -c C:\ProgramData\Squeezebox\Cache\spotty\78406872 -i abcdef1234567890 --disable-discovery --scope user-read-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-top-read,user-read-recently-played,user-read-playback-state,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private --save-token C:\Users\Steve\AppData\Local\Temp\spt-mGgRtZLY
    [23-09-05 11:23:27.1356] Plugins::Spotty::Settings::Auth::startHelper (163) Starting Spotty Connect deamon:
    C:\PROGRA~3\SQUEEZ~1\Cache\INSTAL~1\Plugins\Spotty\Bin\MSWIN3~1\spotty.exe -c C:\ProgramData\Squeezebox\Cache\spotty\__AUTHENTICATE__ -n Spotify Authorization (Bartok) -a --ap-port=12321
    [23-09-05 11:23:27.1446] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Trying to rename __AUTHENTICATE__ to
    [23-09-05 11:23:27.1495] Plugins::Spotty::Settings::Auth::shutdownHelper (193) Quitting authentication daemon
    [23-09-05 11:23:28.1511] Plugins::Spotty::AccountHelper::renameCacheFolder (147) Trying to rename __AUTHENTICATE__ to
    [23-09-05 11:23:28.1817] Plugins::Spotty::Helper::_findBin (192) Trying helper application: C:\PROGRA~3\SQUEEZ~1\Cache\INSTAL~1\Plugins\Spotty\Bin\MSWIN3~1\spotty.exe
    [23-09-05 11:23:28.2590] Plugins::Spotty::Helper::_findBin (195) Found helper application: C:\PROGRA~3\SQUEEZ~1\Cache\INSTAL~1\Plugins\Spotty\Bin\MSWIN3~1\spotty.exe
    [COLOR=red][23-09-05 11:23:28.2820] Plugins::Spotty::API::Token::_gotTokenInfo (168) Got response: {"error":"Failed to create session or connect to servers."} [/COLOR]
    It looks like spotty gets an authorization, but fails to get a token?

    When I run the following command from the command line:
    Code:
     C:\PROGRA~3\SQUEEZ~1\Cache\INSTAL~1\Plugins\Spotty\Bin\MSWIN3~1\spotty.exe -c "C:\ProgramData\Squeezebox\Cache\spotty\__AUTHENTICATE__" -n "Spotify Authorization (Bartok)" -u "****@gmail.com" -p "********" -a --disable-discovery --ap-port 12321 --verbose
    ​
    I get "authorized" as the response.

    I've tried both checking and unchecking the "Spotify Connect" boxes for the two devices on my network, with same result. I didn't change the Advanced settings at the bottom of the page, and haven't set a Client ID.

    Can anyone tell me what I'm doing wrong?

    Leave a comment:


  • LeighS
    replied
    Oh, I worked it out - its what makes my LMS clients appear in the Spotify app (computer or phone) list of devices - I use that sometimes

    I also worked out that if all my clients are synced then I only need to select an one of them for Spotify connect in the LMS Spoty connections and they all appear as a group.

    Leave a comment:


  • mherger
    replied
    Spotify Connect allows you to use the Spotify app on your mobile or desktop to control playback. Unfortunately it's not very robust. If you didn't even know what it was you probably can turn it off .

    Leave a comment:


  • LeighS
    replied
    One thought I had -
    If I have all my 4 RPi clients synchronised together on the RPi LMS server, then I only need to enable one of them for Spotty Connect dont I?
    I am a bit confused as to what Spotty Connect actually does
    I am not sure if it is relevant but I do have UPnP/DLNA Media Interface (v1.0) installed

    Leave a comment:


  • LeighS
    replied
    Great, thanks!
    Now I have a plan of action the next time it happens and it hopefully appear to be so random
    I will report back with any findings

    Thanks so much for LMS - its been at the centre of my multi RPi home sound system for years now - just keeps ticking away.
    Only problem I have really ever had is this Spotify nigle

    VERY much appreciated!

    Leave a comment:


  • mherger
    replied
    It's always difficult to see what was wrong _before_ the restart. Next time you run into this kind of issues, please check the system's overall memory state. Today I had an issue with playback, and when I went to check the LMS machine (pCP with 1GB), I saw there were a pile of spotty helper processes hanging for whatever reason. Once I killed them all the system went back to normal.

    Leave a comment:

Working...
X
😀
🥰
🤢
😎
😡
👍
👎