ldsz / plugin.audio.spotify

Unofficial spotify plugin for Kodi 19
GNU General Public License v3.0
47 stars 17 forks source link

Can't login on Windows 10 #20

Closed ray2301 closed 3 years ago

ray2301 commented 3 years ago

I'm using this plugin for years now. It always had its bugs but since i've updated to kodi 19 everything was working fine untill two days ago. Suddenly i was logged off from Kodi and i can't login anymore (i still have premium). I've tried every version of this plugin for Kodi 19 and even tried it on a new (portable) installation with no other addons installed but I just can't login anymore.

The only thing repeating in the log is this:

2021-06-24 08:00:35.811 T:16264 INFO : plugin.audio.spotify --> b'retrieving token...' 2021-06-24 08:00:35.813 T:16264 DEBUG <CAddonSettings[plugin.audio.spotify]>: trying to load setting definitions from old format... 2021-06-24 08:00:35.814 T:16264 DEBUG : requested setting (connect_username) was not found. 2021-06-24 08:00:35.817 T:16264 DEBUG <CAddonSettings[plugin.audio.spotify]>: trying to load setting definitions from old format... 2021-06-24 08:00:35.818 T:16264 DEBUG : requested setting (connect_username) was not found. 2021-06-24 08:00:35.819 T:16264 INFO : plugin.audio.spotify --> b'spotty terminated' 2021-06-24 08:00:35.922 T:1308 INFO : plugin.audio.spotify --> b'Stopped Spotify Connect Daemon' 2021-06-24 08:00:35.922 T:16264 INFO : plugin.audio.spotify --> b'Retrieving auth token....' 2021-06-24 08:00:40.930 T:16264 INFO : plugin.audio.spotify --> b"request_token_spotty stdout: b''" 2021-06-24 08:00:40.931 T:16264 DEBUG <CAddonSettings[plugin.audio.spotify]>: trying to load setting definitions from old format... 2021-06-24 08:00:40.933 T:16264 DEBUG : requested setting (connect_username) was not found.

2021-06-24 08:00:45.940 T:16264 INFO : plugin.audio.spotify --> b"request_token_spotty stdout: b''" 2021-06-24 08:00:45.940 T:16264 INFO : plugin.audio.spotify --> b"Couldn't request authentication token. Username/password error ? If you're using a facebook account with Spotify, make sure to generate a device account/password in the Spotify accountdetails." 2021-06-24 08:00:45.940 T:9392 INFO : plugin.audio.spotify --> b'Start Spotify Connect Daemon' 2021-06-24 08:00:45.940 T:9392 INFO : plugin.audio.spotify --> b'trying AP Port 443' 2021-06-24 08:00:48.585 T:16936 DEBUG : 127.0.0.1 - - [24/Jun/2021:08:00:48] "POST /lms/jsonrpc.js HTTP/1.1" 404 1739 "" ""

2021-06-24 08:00:48.585 T:16936 DEBUG : . 2021-06-24 08:00:50.941 T:16264 INFO : plugin.audio.spotify --> b'retrieving token...' 2021-06-24 08:00:50.942 T:16264 DEBUG <CAddonSettings[plugin.audio.spotify]>: trying to load setting definitions from old format... 2021-06-24 08:00:50.942 T:16264 DEBUG : requested setting (connect_username) was not found. 2021-06-24 08:00:50.944 T:16264 DEBUG <CAddonSettings[plugin.audio.spotify]>: trying to load setting definitions from old format... 2021-06-24 08:00:50.949 T:16264 DEBUG : requested setting (connect_username) was not found. 2021-06-24 08:00:50.949 T:16264 INFO : plugin.audio.spotify --> b'spotty terminated' 2021-06-24 08:00:51.051 T:9392 INFO : plugin.audio.spotify --> b'Stopped Spotify Connect Daemon' 2021-06-24 08:00:51.051 T:16264 INFO : plugin.audio.spotify --> b'Retrieving auth token....' 2021-06-24 08:00:56.059 T:16264 INFO : plugin.audio.spotify --> b"request_token_spotty stdout: b''" 2021-06-24 08:00:56.060 T:16264 DEBUG <CAddonSettings[plugin.audio.spotify]>: trying to load setting definitions from old format... 2021-06-24 08:00:56.062 T:16264 DEBUG : requested setting (connect_username) was not found. 2021-06-24 08:01:00.417 T:3152 DEBUG : Thread JobWorker start, auto delete: true 2021-06-24 08:01:01.071 T:16264 INFO : Skipped 1 duplicate messages.. 2021-06-24 08:01:01.071 T:16264 INFO : plugin.audio.spotify --> b"request_token_spotty stdout: b''" 2021-06-24 08:01:01.071 T:16264 INFO : plugin.audio.spotify --> b"Couldn't request authentication token. Username/password error ? If you're using a facebook account with Spotify, make sure to generate a device account/password in the Spotify accountdetails." 2021-06-24 08:01:01.071 T:16088 INFO : plugin.audio.spotify --> b'Start Spotify Connect Daemon' 2021-06-24 08:01:01.071 T:16088 INFO : plugin.audio.spotify --> b'trying AP Port 443' 2021-06-24 08:01:03.640 T:10476 DEBUG : 127.0.0.1 - - [24/Jun/2021:08:01:03] "POST /lms/jsonrpc.js HTTP/1.1" 404 1739 "" ""

I can see "Spotify for Kodi" in Approved Spotify applicaions, but i never see my browser opening or asking to authorize I can see credentials in "credentials.json" are generated. I can see "connect_username" is generated in the settings I can't pin the problem here, maybe spotty.exe since i see it keeps crashing and restarting. I've had millions of problems with this addons over the years (and spotty.exe), but always somehow managed to get it working, but now it's been two days of me trying everything and i really need some help if anyone has ideas. it's happening on windows 10 (x64), kodi 19.1 and even tried a clean install of 19.0 and the latest nightly from 24/06 I don't have any more ideas

ray2301 commented 3 years ago

yesterday it just started working by itself. i just opened up the plugin and everything was working fine. who knows what had happened. it's the most buggy plugin i've ever needed in my life :) p.s. for anyone on windows who has buffering problems (song stopping before it ends, song not starting then skipping and plays next or similar problems), you can try edit advancedsettings.xml like this:

<advancedsettings>
        <network>
                <autodetectpingtime>30</autodetectpingtime>
                <curlclienttimeout>10</curlclienttimeout>
                <curllowspeedtime>3</curllowspeedtime>
                <curlretries>3</curlretries>
                <disableipv6>true</disableipv6>
<!--            <cachemembuffersize>0</cachemembuffersize> -->
        </network>
        <cache>
                <buffermode>1</buffermode>
                 <memorysize>80971520</memorysize>
                 <readfactor>10</readfactor>
        </cache>
</advancedsettings>