Coder Social home page Coder Social logo

plugin.audio.spotify's People

Contributors

angelinas1 avatar eng2heb avatar flakey-bit avatar gbrakss avatar gbrauen avatar jakermx avatar jeffothy avatar karolisl avatar marcelveldt avatar marhycz avatar nforro avatar seanfuture avatar sualfred avatar tobhor 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin.audio.spotify's Issues

Multiple users, switching not working

I'm trying to use to multiple user functionality but it doesn't seem to work. A log file is included with the error line when pressing the "Current User" option. The main user is a Facebook user, the secondary user is a 'normal' Spotify user.

I use a Raspberry Pi 2 running the latest version of OSMC.
(Linux osmc 4.9.29-9-osmc #1 SMP PREEMPT Sat Jul 29 01:44:42 UTC 2017 armv7l GNU/Linux)

20:21:37.389 T:1498592240 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:21:37.389 T:1498592240 WARNING: Attempt to use invalid handle -1
20:21:59.360 T:1187222512 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:21:59.375 T:1187222512 WARNING: Attempt to use invalid handle -1
20:23:30.840 T:1700787184 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:23:30.840 T:1700787184 WARNING: Attempt to use invalid handle -1
20:23:38.373 T:1545597936 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:23:38.374 T:1545597936 WARNING: Attempt to use invalid handle -1
20:23:38.470 T:1187222512 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:23:38.470 T:1187222512 WARNING: Attempt to use invalid handle -1
20:23:38.545 T:1212937200 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:23:38.546 T:1212937200 WARNING: Attempt to use invalid handle -1
20:23:38.593 T:1498592240 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:23:38.593 T:1498592240 WARNING: Attempt to use invalid handle -1
20:25:01.758 T:1700787184 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:25:01.759 T:1700787184 WARNING: Attempt to use invalid handle -1
20:25:02.548 T:1742730224 WARNING: CSkinInfo: failed to load skin settings
20:25:02.794 T:1742730224 ERROR: EXCEPTION: Non-Existent Control 300
20:25:07.920 T:1228927984 WARNING: CPythonInvoker(27): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
20:28:17.103 T:1131672560 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:28:17.139 T:1959043072 NOTICE: VideoPlayer: Opening:
20:28:17.139 T:1959043072 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:28:17.141 T:1148711920 NOTICE: Creating InputStream
20:28:17.161 T:1148711920 ERROR: Error on dvdnav_open
20:28:17.161 T:1148711920 ERROR: CVideoPlayer::OpenInputStream - error opening []
20:28:17.161 T:1148711920 NOTICE: CVideoPlayer::OnExit()
20:28:17.162 T:1959043072 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.spotify/?action=switch_user]
20:28:17.171 T:1959043072 NOTICE: CVideoPlayer::CloseFile()
20:28:17.172 T:1959043072 NOTICE: VideoPlayer: waiting for threads to exit
20:28:17.172 T:1959043072 NOTICE: VideoPlayer: finished waiting
20:28:17.172 T:1959043072 NOTICE: CVideoPlayer::CloseFile()
20:28:17.172 T:1959043072 NOTICE: VideoPlayer: waiting for threads to exit
20:28:17.172 T:1959043072 NOTICE: VideoPlayer: finished waiting
20:28:31.100 T:1123283952 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/[email protected]:
Invalid username
20:28:31.136 T:1959043072 NOTICE: VideoPlayer: Opening:
20:28:31.136 T:1959043072 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:28:31.142 T:1114895344 NOTICE: Creating InputStream
20:28:31.145 T:1114895344 ERROR: Error on dvdnav_open
20:28:31.145 T:1114895344 ERROR: CVideoPlayer::OpenInputStream - error opening []
20:28:31.145 T:1114895344 NOTICE: CVideoPlayer::OnExit()
20:28:31.146 T:1959043072 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.spotify/?action=switch_user]
20:28:31.153 T:1959043072 NOTICE: CVideoPlayer::CloseFile()
20:28:31.154 T:1959043072 NOTICE: VideoPlayer: waiting for threads to exit
20:28:31.154 T:1959043072 NOTICE: VideoPlayer: finished waiting
20:28:31.154 T:1959043072 NOTICE: CVideoPlayer::CloseFile()
20:28:31.154 T:1959043072 NOTICE: VideoPlayer: waiting for threads to exit
20:28:31.154 T:1959043072 NOTICE: VideoPlayer: finished waiting
20:29:04.157 T:1742730224 WARNING: CSkinInfo: failed to load skin settings
20:29:04.410 T:1742730224 ERROR: EXCEPTION: Non-Existent Control 300
20:29:09.379 T:1106506736 WARNING: CPythonInvoker(35): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.

Not being able to play any music

Latest release broke music playback again

02:29:16.025 T:3889165296  NOTICE: plugin.audio.spotify --> reported architecture: aarch64
02:29:17.390 T:3889165296  NOTICE: plugin.audio.spotify --> ok spotty v0.6.1
02:29:17.402 T:3889165296  NOTICE: plugin.audio.spotify --> Architecture detected. Using spotty binary /home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/spotty/arm-linux/spotty-muslhf
02:29:21.053 T:3889165296  NOTICE: plugin.audio.spotify --> ok spotty v0.6.1
02:29:21.067 T:3889165296  NOTICE: plugin.audio.spotify --> started webproxy at port 52308
02:30:18.944 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:18.944 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5T3GlP5OgkhOjwA1ssMLqF/328
02:30:18.945 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5T3GlP5OgkhOjwA1ssMLqF/328>
02:30:18.945 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5T3GlP5OgkhOjwA1ssMLqF/328
02:30:18.945 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5T3GlP5OgkhOjwA1ssMLqF/328
02:30:18.945 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:18.945 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 2, path [http://localhost:52308/track/5T3GlP5OgkhOjwA1ssMLqF/328]
02:30:19.055 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.056 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/7G3ocvdmbv5iyiDeq0x3uO/259
02:30:19.056 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/7G3ocvdmbv5iyiDeq0x3uO/259>
02:30:19.056 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/7G3ocvdmbv5iyiDeq0x3uO/259
02:30:19.056 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/7G3ocvdmbv5iyiDeq0x3uO/259
02:30:19.056 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.056 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 3, path [http://localhost:52308/track/7G3ocvdmbv5iyiDeq0x3uO/259]
02:30:19.163 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.163 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5wzy5hhzhoNqvy8GQ1QTMS/288
02:30:19.163 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5wzy5hhzhoNqvy8GQ1QTMS/288>
02:30:19.163 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5wzy5hhzhoNqvy8GQ1QTMS/288
02:30:19.164 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5wzy5hhzhoNqvy8GQ1QTMS/288
02:30:19.164 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.164 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 4, path [http://localhost:52308/track/5wzy5hhzhoNqvy8GQ1QTMS/288]
02:30:19.270 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.270 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5VS6Y7aNhtj2pQvq0WsFOx/315
02:30:19.270 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5VS6Y7aNhtj2pQvq0WsFOx/315>
02:30:19.270 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5VS6Y7aNhtj2pQvq0WsFOx/315
02:30:19.271 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5VS6Y7aNhtj2pQvq0WsFOx/315
02:30:19.271 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.271 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 5, path [http://localhost:52308/track/5VS6Y7aNhtj2pQvq0WsFOx/315]
02:30:19.378 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.379 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5NjaHENlsSRmDcv4jldyNE/294
02:30:19.379 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5NjaHENlsSRmDcv4jldyNE/294>
02:30:19.379 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5NjaHENlsSRmDcv4jldyNE/294
02:30:19.379 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5NjaHENlsSRmDcv4jldyNE/294
02:30:19.379 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.380 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 6, path [http://localhost:52308/track/5NjaHENlsSRmDcv4jldyNE/294]
02:30:19.487 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.488 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/4srPsvR7aBRVqZUkCFkLsM/268
02:30:19.488 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/4srPsvR7aBRVqZUkCFkLsM/268>
02:30:19.488 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/4srPsvR7aBRVqZUkCFkLsM/268
02:30:19.488 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/4srPsvR7aBRVqZUkCFkLsM/268
02:30:19.488 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.489 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 7, path [http://localhost:52308/track/4srPsvR7aBRVqZUkCFkLsM/268]
02:30:19.595 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.596 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/1PNkH8C6oXFq6c7IbAwiRZ/314
02:30:19.596 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/1PNkH8C6oXFq6c7IbAwiRZ/314>
02:30:19.596 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/1PNkH8C6oXFq6c7IbAwiRZ/314
02:30:19.596 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/1PNkH8C6oXFq6c7IbAwiRZ/314
02:30:19.596 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.596 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 8, path [http://localhost:52308/track/1PNkH8C6oXFq6c7IbAwiRZ/314]
02:30:19.704 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.705 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5zZXa1hCQDzzSY341rS4eu/288
02:30:19.705 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5zZXa1hCQDzzSY341rS4eu/288>
02:30:19.706 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5zZXa1hCQDzzSY341rS4eu/288
02:30:19.706 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5zZXa1hCQDzzSY341rS4eu/288
02:30:19.706 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.707 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 9, path [http://localhost:52308/track/5zZXa1hCQDzzSY341rS4eu/288]
02:30:19.814 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.815 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/09us5srErrAO90HgzIOcOM/243
02:30:19.815 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/09us5srErrAO90HgzIOcOM/243>
02:30:19.816 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/09us5srErrAO90HgzIOcOM/243
02:30:19.816 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/09us5srErrAO90HgzIOcOM/243
02:30:19.816 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.817 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 10, path [http://localhost:52308/track/09us5srErrAO90HgzIOcOM/243]
02:30:19.925 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:19.925 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5z0xhQccNrAm60s63FvLIf/309
02:30:19.925 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5z0xhQccNrAm60s63FvLIf/309>
02:30:19.925 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5z0xhQccNrAm60s63FvLIf/309
02:30:19.926 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5z0xhQccNrAm60s63FvLIf/309
02:30:19.926 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:19.926 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 11, path [http://localhost:52308/track/5z0xhQccNrAm60s63FvLIf/309]
02:30:20.033 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.034 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/45YMSCNnYK9F0LMy51Hrlu/354
02:30:20.034 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/45YMSCNnYK9F0LMy51Hrlu/354>
02:30:20.034 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/45YMSCNnYK9F0LMy51Hrlu/354
02:30:20.035 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/45YMSCNnYK9F0LMy51Hrlu/354
02:30:20.035 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.036 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 12, path [http://localhost:52308/track/45YMSCNnYK9F0LMy51Hrlu/354]
02:30:20.143 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.143 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/6lAkAy9sOxblfa8zozvv8m/323
02:30:20.144 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/6lAkAy9sOxblfa8zozvv8m/323>
02:30:20.144 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/6lAkAy9sOxblfa8zozvv8m/323
02:30:20.144 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/6lAkAy9sOxblfa8zozvv8m/323
02:30:20.144 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.144 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 13, path [http://localhost:52308/track/6lAkAy9sOxblfa8zozvv8m/323]
02:30:20.251 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.251 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/44UNOSnNpgirayKI4EAQul/303
02:30:20.251 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/44UNOSnNpgirayKI4EAQul/303>
02:30:20.252 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/44UNOSnNpgirayKI4EAQul/303
02:30:20.252 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/44UNOSnNpgirayKI4EAQul/303
02:30:20.252 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.252 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 14, path [http://localhost:52308/track/44UNOSnNpgirayKI4EAQul/303]
02:30:20.360 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.361 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/02sCiQ4XsnD3IcCYR5iAlO/488
02:30:20.361 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/02sCiQ4XsnD3IcCYR5iAlO/488>
02:30:20.362 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/02sCiQ4XsnD3IcCYR5iAlO/488
02:30:20.362 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/02sCiQ4XsnD3IcCYR5iAlO/488
02:30:20.362 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.363 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 15, path [http://localhost:52308/track/02sCiQ4XsnD3IcCYR5iAlO/488]
02:30:20.472 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.472 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/5NcNlarQWuO5afnrADv8nc/375
02:30:20.472 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/5NcNlarQWuO5afnrADv8nc/375>
02:30:20.472 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/5NcNlarQWuO5afnrADv8nc/375
02:30:20.472 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5NcNlarQWuO5afnrADv8nc/375
02:30:20.472 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.473 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 16, path [http://localhost:52308/track/5NcNlarQWuO5afnrADv8nc/375]
02:30:20.579 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.580 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/1aIhPYDSvs1Lmw9ls830tr/247
02:30:20.581 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/1aIhPYDSvs1Lmw9ls830tr/247>
02:30:20.581 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/1aIhPYDSvs1Lmw9ls830tr/247
02:30:20.581 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/1aIhPYDSvs1Lmw9ls830tr/247
02:30:20.582 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.582 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 17, path [http://localhost:52308/track/1aIhPYDSvs1Lmw9ls830tr/247]
02:30:20.690 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.690 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/2aPvXuuAkoJXGEX3882MI3/415
02:30:20.691 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/2aPvXuuAkoJXGEX3882MI3/415>
02:30:20.691 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/2aPvXuuAkoJXGEX3882MI3/415
02:30:20.691 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/2aPvXuuAkoJXGEX3882MI3/415
02:30:20.691 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.691 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 18, path [http://localhost:52308/track/2aPvXuuAkoJXGEX3882MI3/415]
02:30:20.799 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.800 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/4nNi0IaAemCblMgle3BTCy/439
02:30:20.800 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/4nNi0IaAemCblMgle3BTCy/439>
02:30:20.800 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/4nNi0IaAemCblMgle3BTCy/439
02:30:20.800 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/4nNi0IaAemCblMgle3BTCy/439
02:30:20.800 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.801 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 19, path [http://localhost:52308/track/4nNi0IaAemCblMgle3BTCy/439]
02:30:20.910 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:20.910 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/3G9q12GDlJKKeqZoMXOIA3/435
02:30:20.910 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/3G9q12GDlJKKeqZoMXOIA3/435>
02:30:20.911 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/3G9q12GDlJKKeqZoMXOIA3/435
02:30:20.911 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/3G9q12GDlJKKeqZoMXOIA3/435
02:30:20.911 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:20.912 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 20, path [http://localhost:52308/track/3G9q12GDlJKKeqZoMXOIA3/435]
02:30:21.021 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:21.021 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/06z2dyiEHmD9d6KNbmVgK5/430
02:30:21.022 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/06z2dyiEHmD9d6KNbmVgK5/430>
02:30:21.022 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/06z2dyiEHmD9d6KNbmVgK5/430
02:30:21.022 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/06z2dyiEHmD9d6KNbmVgK5/430
02:30:21.022 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:21.022 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 21, path [http://localhost:52308/track/06z2dyiEHmD9d6KNbmVgK5/430]
02:30:21.143 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:21.143 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/2cu9FNOQ44WAHfmQopmGj3/465
02:30:21.143 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/2cu9FNOQ44WAHfmQopmGj3/465>
02:30:21.143 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/2cu9FNOQ44WAHfmQopmGj3/465
02:30:21.143 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/2cu9FNOQ44WAHfmQopmGj3/465
02:30:21.143 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:21.144 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 22, path [http://localhost:52308/track/2cu9FNOQ44WAHfmQopmGj3/465]
02:30:21.252 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:21.253 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/0CEGE4VJgWjXot6AU10fvm/353
02:30:21.253 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/0CEGE4VJgWjXot6AU10fvm/353>
02:30:21.253 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/0CEGE4VJgWjXot6AU10fvm/353
02:30:21.253 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/0CEGE4VJgWjXot6AU10fvm/353
02:30:21.254 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:21.254 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 23, path [http://localhost:52308/track/0CEGE4VJgWjXot6AU10fvm/353]
02:30:21.362 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:21.362 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/1w1x564bwAC4nyPkwggoBF/516
02:30:21.362 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/1w1x564bwAC4nyPkwggoBF/516>
02:30:21.362 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/1w1x564bwAC4nyPkwggoBF/516
02:30:21.362 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/1w1x564bwAC4nyPkwggoBF/516
02:30:21.362 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:21.362 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 24, path [http://localhost:52308/track/1w1x564bwAC4nyPkwggoBF/516]
02:30:21.470 T:4111667200   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
02:30:21.470 T:4111667200   ERROR: CCurlFile::Open failed with code 403 for http://localhost:52308/track/4IFPlLIrmOxZ6QyTkGS2R2/381
02:30:21.470 T:4111667200   ERROR: Open - failed to open source <http://localhost:52308/track/4IFPlLIrmOxZ6QyTkGS2R2/381>
02:30:21.470 T:4111667200   ERROR: Init: Error opening file http://localhost:52308/track/4IFPlLIrmOxZ6QyTkGS2R2/381
02:30:21.470 T:4111667200   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/4IFPlLIrmOxZ6QyTkGS2R2/381
02:30:21.470 T:4111667200 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
02:30:21.471 T:4111667200   ERROR: Playlist Player: skipping unplayable item: 25, path [http://localhost:52308/track/4IFPlLIrmOxZ6QyTkGS2R2/381]
02:30:32.602 T:3838833648  NOTICE: My Music: Scanning for music info using worker thread, operation took 01:24
02:31:19.810 T:3708810224  NOTICE: ES: Client  from ::ffff:192.168.1.180 timed out

CPU load high after playing music

When playing music CPU load rises to about 50%, This is almost expected(encrypted stream? doing whatever it needs to do)

But when I stop the song, CPU load high even if I exit the plugin

19:01:46.354 T:3889312752  NOTICE: plugin.audio.spotify --> reported architecture: aarch64
19:01:46.647 T:3889312752  NOTICE: plugin.audio.spotify --> ok spotty v0.6.1
19:01:46.647 T:3889312752  NOTICE: plugin.audio.spotify --> Architecture detected. Using spotty binary /home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/spotty/arm-linux/spotty-muslhf
19:01:47.934 T:3889312752  NOTICE: plugin.audio.spotify --> ok spotty v0.6.1
19:01:48.173 T:3889312752  NOTICE: plugin.audio.spotify --> started webproxy at port 52308
19:01:51.791 T:3889312752 WARNING: plugin.audio.spotify --> {"accessToken":"<MyAwesoneAccessTokenHere>","expiresIn":3600,"tokenType":"Bearer","scope":["playlist-read-private","playlist-read-collaborative","user-follow-read","playlist-modify-private","user-read-email","user-read-private","user-modify-playback-state","user-follow-modify","user-library-read","user-library-modify","playlist-modify-public","user-read-playback-state","user-read-currently-playing","user-read-birthdate","user-top-read"]}
19:01:51.792 T:3889312752 WARNING: plugin.audio.spotify --> Token from spotty: {'access_token': '<MyAwesoneAccessTokenHere>', 'expires_in': 3600, 'expires_at': 1500051711, 'token_type': 'Bearer', 'scope': 'playlist-read-private playlist-read-collaborative user-follow-read playlist-modify-private user-read-email user-read-private user-modify-playback-state user-follow-modify user-library-read user-library-modify playlist-modify-public user-read-playback-state user-read-currently-playing user-read-birthdate user-top-read', 'refresh_token': '<MyAwesoneAccessTokenHere>'}
19:01:51.792 T:3889312752  NOTICE: plugin.audio.spotify --> Retrieved auth token
19:01:52.543 T:3889312752  NOTICE: plugin.audio.spotify --> Logged in to Spotify - Username: mikk150
19:01:52.544 T:3441681392  NOTICE: plugin.audio.spotify --> Start Spotify Connect Daemon
19:03:16.050 T:3658916848   ERROR: GetDirectory - Error getting
19:03:49.758 T:3563316208   ERROR: Previous line repeats 3 times.
19:03:49.758 T:3563316208 WARNING: plugin.audio.spotify --> start chunked transfer for full track 1IBxtCOTtdU9StLpNK6wZh

Unable to find libspotify

Hello,
First, thanks for your work.

I installed your spotify addon 1.0.5 on my android TV 5.1 ARM running Kodi 15.2, but I encountered an issue.
I managed to connect to my spotify premium account through the web browser.
When I go back to Kodi and start the addon, it takes some time and then pops up a message telling me:
Login error: Platform not supported for playback, continuing without playback support.

I then can access my spotify library and all spotify playlists, but when I start a song, only 30 seconds are playing, and the next song starts.

By looking at the log files, it appears that the libspotify is not found.
However, by inspecting the installation folder, in /sdcard/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.spotify/resources/dlls/android.arm, there are 3 files:
libspotify.so, libspotify.so.12, and libspotify.so.12.1.51

Here is my log file, everythin happens around line 650.

Is it something you are aware of?
Do you have any idea how to solve it?

Thanks for your help!

Issue switching users

I'm not able to switch users when enabling and configuring multiple users. None of them are facebook related.
12:29:45.512 T:1145115632 WARNING: Attempt to use invalid handle -1 12:29:45.846 T:1113584624 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> http status: 400, code:-1 - https://api.spotify.com/v1/users/********************: Invalid username

It could be the same issue as: #48

Currently using version: 1.1.45

Cannot login

Hi,

the update didn't fix my problem (Previously Issu #34 ). I can't login on whatever operating system/machine. I tried to login with a US account but didn't do. My guess is that I can't login because I'm in Canada.

Song order on Kore

Hi!

When browsing albums on Kore (the official Android remote), the songs are listed alphabetically.
Can this be fixed on your side or is that a Kore issue?

Doesn't seem to work well with Kodi profiles

I have a Kodi installation with two profiles. The spotify plugin works after I've just started Kodi, but if I switch to the other profile and back again, there are leftover librespot zombie processes on the system and the spotify plugin is unable to play any tracks (the system log complains about a port being in use, so I'm guessing the zombie processes are hogging that port).

show playlists achter search

Hoi Marcel,

After search, I see the overview of amount of playlists found, but when I enter found playlists, I get an empty page, no results.

I use kodi 17.3 on libreelec 8.02 on rpi3.
I tried spotify 1.0.26 and 1.1.36.

Nothing special in logfile.

Groeten,
Frank

Error when playing any song

Hi, I just tried to play songs from this Spotify addon installed on my Kodi (from a raspberry PI - OS is libreelec) and they all crash.

Kodi displayed the usual error message, so I tried again while watching the logs and here they are:

21:36:07.373 T:1962504656 ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
21:36:07.373 T:1962504656 ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/4ctyWIWWmWul4j1TDRbWVs/675
21:36:07.373 T:1962504656 ERROR: Open - failed to open source http://localhost:52308/track/4ctyWIWWmWul4j1TDRbWVs/675
21:36:07.373 T:1962504656 ERROR: Init: Error opening file http://localhost:52308/track/4ctyWIWWmWul4j1TDRbWVs/675
21:36:07.374 T:1962504656 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/4ctyWIWWmWul4j1TDRbWVs/675
21:36:07.374 T:1962504656 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
21:36:07.374 T:1962504656 ERROR: Playlist Player: skipping unplayable item: 0, path [http://localhost:52308/track/4ctyWIWWmWul4j1TDRbWVs/675]

My Spotify addon version is the latest (1.1.44) and I have a working premium Spotify account
Thanks for your help, and may I mention, I'm a huge fan of this addon, great work !

Won't accept credentials

Hi! On a raspberry pi 2 running Kodi 17.3 on OSMC. Add on worked perfectly first time but went back second time and it won't accept credentials.
This is the error:
21:06:52.397 T:1805845488 DEBUG: PushCecKeypress - ignored key b
21:06:52.468 T:1958404096 DEBUG: ------ Window Deinit (DialogAddonSettings.xml) ------
21:06:52.720 T:1701417968 DEBUG: plugin.audio.spotify -->
21:06:52.720 T:1701417968 DEBUG: plugin.audio.spotify --> 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.
21:06:53.309 T:1743623152 DEBUG: script.module.osmcsetting.updates : - blurp 483 - MyMusicNav.xml
21:06:57.653 T:1805845488 DEBUG: PushCecKeypress - received key d8 duration 0 (rep:0 size:0)
21:06:57.653 T:1805845488 DEBUG: PushCecKeypress - added key d8
21:06:57.672 T:1958404096 DEBUG: OnKey: menu (0xd8) pressed, action is Back
21:06:57.680 T:1958404096 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
21:06:57.822 T:1701417968 DEBUG: plugin.audio.spotify -->
21:06:57.823 T:1701417968 DEBUG: plugin.audio.spotify --> 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.
21:06:57.860 T:1805845488 DEBUG: PushCecKeypress - received key d8 duration 207 (rep:0 size:0)
21:06:57.860 T:1805845488 DEBUG: PushCecKeypress - ignored key d8

Have tried reinstalling but same thing.
Thanks,
Mark.

Unable to Login

I have an issue where once after i install spotify and i try to login. Spotify doesnt show any error but i cannot see any of my playlist. all i see is 3 little "..."
please help

Possible Kodi 16 Issues?

I switched to LibreElec using the official Jarvis v16.1 version but could not get the addon to load.

Looking at the logs I see:

18:06:55 T:140258742540032 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnboundLocalError'> Error Contents: local variable 'error' referenced before assignment Traceback (most recent call last): File "/storage/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module> Main().main() File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1128, in main if self.checkLoginDetails(): File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1058, in checkLoginDetails xbmcgui.Dialog().ok(ADDON_NAME, ADDON.getLocalizedString(11019) + ': ' + error) UnboundLocalError: local variable 'error'

Please let me know if I am doing something incorrectly. My spotify premium account works correctly and I have verified the username and password is correct in the addon config settings

Error on play

Not able to play any songs on Kodi 17.3 Git:147cec4 Media Center (LibreElec)
It works when I disable the device as Spotify Connect target.

The log gets filled with these errors:

08:05:16.163 T:1961804912   ERROR: Open - failed to open source <http://localhost:52308/track/6gYpqMBJUGFxkXEus4PVQL/224>
08:05:16.163 T:1961804912   ERROR: Init: Error opening file http://localhost:52308/track/6gYpqMBJUGFxkXEus4PVQL/224
08:05:16.163 T:1961804912   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/6gYpqMBJUGFxkXEus4PVQL/224
08:05:16.163 T:1961804912 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
08:05:16.163 T:1961804912   ERROR: Playlist Player: skipping unplayable item: 97, path [http://localhost:52308/track/6gYpqMBJUGFxkXEus4PVQL/224]
08:05:16.267 T:1961804912   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
08:05:16.268 T:1961804912   ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/3fkzGHO8J5DjW0IlZukwLH/141
08:05:16.268 T:1961804912   ERROR: Open - failed to open source <http://localhost:52308/track/3fkzGHO8J5DjW0IlZukwLH/141>
08:05:16.268 T:1961804912   ERROR: Init: Error opening file http://localhost:52308/track/3fkzGHO8J5DjW0IlZukwLH/141
08:05:16.268 T:1961804912   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/3fkzGHO8J5DjW0IlZukwLH/141
08:05:16.268 T:1961804912 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
08:05:16.268 T:1961804912   ERROR: Playlist Player: skipping unplayable item: 98, path [http://localhost:52308/track/3fkzGHO8J5DjW0IlZukwLH/141]
08:05:16.372 T:1961804912   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
08:05:16.372 T:1961804912   ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/2hszcJKJxGfCYykOqFSiDr/189
08:05:16.372 T:1961804912   ERROR: Open - failed to open source <http://localhost:52308/track/2hszcJKJxGfCYykOqFSiDr/189>
08:05:16.372 T:1961804912   ERROR: Init: Error opening file http://localhost:52308/track/2hszcJKJxGfCYykOqFSiDr/189
08:05:16.372 T:1961804912   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/2hszcJKJxGfCYykOqFSiDr/189
08:05:16.372 T:1961804912 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
08:05:16.373 T:1961804912   ERROR: Playlist Player: skipping unplayable item: 99, path [http://localhost:52308/track/2hszcJKJxGfCYykOqFSiDr/189]
08:05:16.476 T:1961804912   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
08:05:16.476 T:1961804912   ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/0LxWwU72rH2XolyIdeZkdt/171
08:05:16.477 T:1961804912   ERROR: Open - failed to open source <http://localhost:52308/track/0LxWwU72rH2XolyIdeZkdt/171>
08:05:16.477 T:1961804912   ERROR: Init: Error opening file http://localhost:52308/track/0LxWwU72rH2XolyIdeZkdt/171
08:05:16.477 T:1961804912   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/0LxWwU72rH2XolyIdeZkdt/171
08:05:16.477 T:1961804912 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
08:05:16.477 T:1961804912   ERROR: Playlist Player: skipping unplayable item: 100, path [http://localhost:52308/track/0LxWwU72rH2XolyIdeZkdt/171]
08:05:16.581 T:1961804912   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
08:05:16.581 T:1961804912   ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/4M3seu7GFAY4A0BDLOnc8l/216
08:05:16.598 T:1961804912   ERROR: Open - failed to open source <http://localhost:52308/track/4M3seu7GFAY4A0BDLOnc8l/216>
08:05:16.598 T:1961804912   ERROR: Init: Error opening file http://localhost:52308/track/4M3seu7GFAY4A0BDLOnc8l/216
08:05:16.598 T:1961804912   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/4M3seu7GFAY4A0BDLOnc8l/216
08:05:16.598 T:1961804912 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
08:05:16.598 T:1961804912   ERROR: Playlist Player: skipping unplayable item: 101, path [http://localhost:52308/track/4M3seu7GFAY4A0BDLOnc8l/216]
08:05:16.702 T:1961804912   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
08:05:16.702 T:1961804912   ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/5NwnBDP9al5Ahr3JYl9VF4/195
08:05:16.702 T:1961804912   ERROR: Open - failed to open source <http://localhost:52308/track/5NwnBDP9al5Ahr3JYl9VF4/195>
08:05:16.702 T:1961804912   ERROR: Init: Error opening file http://localhost:52308/track/5NwnBDP9al5Ahr3JYl9VF4/195
08:05:16.703 T:1961804912   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/5NwnBDP9al5Ahr3JYl9VF4/195
08:05:16.703 T:1961804912 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
08:05:16.703 T:1961804912   ERROR: Playlist Player: skipping unplayable item: 102, path [http://localhost:52308/track/5NwnBDP9al5Ahr3JYl9VF4/195]

Sometimes Plays

I can't quite narrow down the cause but it seems like your plugin works for me when searching for a song but playing playlists or even using Spotify on my laptop ends in a "One or more items failed to play" error. I am using 1.1.27 and am using a fresh install of OSMC.

Query dialog showing up

Hi Marcel,
I have an issue with the search term input dialog. I am not sure that it is a plugin issue, I hope you can help sorting it out.

When using the plugin via Yatse, the search dialog pops up on the Kodi screen as well as the Yatse screen. In some cases (dependent on how you navigate), the Kodi dialog remains on the screen, even when dismissed in Yatse. This blocks all further input to Kodi. The developer of Yatse said that this is probably Kodi/plugin issue.

http://yatse.tv/redmine/issues/964

Summary:
Using the plugin.audio.spotify plugin, a search dialog comes up in Kodi and in Yatse simultaneously. When the dialog is dismissed in Yatse, it remains on the screen in Kodi.
Precondition:
The spotify plugin is installed and setup, the user already logged in. The plugin can be used to stream music from spotify.
Steps to reproduce:

  1. Start Yatse
  2. Side nav -> Plugins
  3. Spotify
  4. Search (search dialog comes up)
  5. Enter "Billy Cobham" -> Send
  6. Artists
  7. Billy Cobham
  8. Press Back twice. Search dialog comes up again (in Yatse AND in Kodi too).
  9. Keep pressing Back, dismissing the (Yatse) dialog and finally ending up in Yatse main screen.
    -> The search dialog in Kodi remains un-dismissed. It must be manually dismissed (using a keyboard).
    This dialog is annoying becuase I don't see it (the TV is usually not on when listening to music), but eats all keypresses coming from the (flirc) remote. In effect, it causes the remote to stop working. To dismiss it, I must fetch and connect a keyboard.
    I think that during the Back navigation, the search dialog should not come up at all. Maybe this is the problem.

Not playing songs on OSX

Can see songs from my library, but nothing happen when i select a song to play....

00:34:03.597 T:4642906112   DEBUG: CPythonInvoker(27, /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/plugin.py): the source file to load is "/Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/plugin.py"
00:34:03.597 T:4642906112   DEBUG: CPythonInvoker(27, /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/plugin.py): setting the Python path to /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify:/Users/xxx/Library/Application Support/Kodi/addons/script.module.requests/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.simplecache/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.simplejson/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.six/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.unidecode/lib:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages/Pillow-3.0.0-py2.7-macosx-10.4-x86_64.egg:/Applications/Kodi.app/Contents/Libraries:/Applications/Kodi.app/Contents/Libraries/lib/python27.zip:/Applications/Kodi.app/Contents/Libraries/lib/python2.7:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-darwin:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-mac:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-mac/lib-scriptpackages:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-tk:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-old:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-dynload:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages
00:34:03.597 T:4642906112   DEBUG: CPythonInvoker(27, /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/plugin.py): entering source directory /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify
00:34:03.597 T:4642906112   DEBUG: CPythonInvoker(27, /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/plugin.py): instantiating addon using automatically obtained id of "plugin.audio.spotify" dependent on version 2.1.0 of the xbmc.python api
00:34:03.759 T:4642906112   DEBUG: Skin Helper Simplecache --> Initialized
00:34:04.485 T:4642906112   DEBUG: plugin.audio.spotify --> Traceback (most recent call last):
                                              File "/Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/resources/lib/plugin_content.py", line 54, in __init__
                                                eval(action)()
                                              File "/Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/resources/lib/plugin_content.py", line 219, in connect_playback
                                                if cur_playback["device"]["name"] != get_playername():
                                            TypeError: 'NoneType' object has no attribute '__getitem__'
00:34:04.485 T:4642906112 WARNING: plugin.audio.spotify --> Exception in plugin_content ! --> 'NoneType' object has no attribute '__getitem__'
00:34:04.485 T:4642906112 WARNING: Attempt to use invalid handle -1
00:34:04.485 T:4642906112   DEBUG: Skin Helper Simplecache --> Closed
00:34:04.485 T:4642906112    INFO: CPythonInvoker(27, /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/plugin.py): script successfully run
00:34:04.498 T:4642906112    INFO: Python script stopped

Spotify Connect

I found a issue when i play a song, i can saw it on my pc but this no reproduced any sound in kodi

Feature Request: Enable device to listen to all/multiple user connections

Is it possible to add a feature, so one Kodi device acts as a "Spotify Connect" client for multiple users at the same time?

It was similiar to that a few weeks ago, where every Spotify user in your LAN was able to stream to that device, but now fixed as it obviously seemed to be some sort of a bug.

My idea for the settings menu:

  • When activating "multiple user support", also enable the option to let the device listen to all the registered accounts
  • Add an option to listen to ALL clients in your LAN. (Great for guests in your network)

AttributeError: 'module' object has no attribute 'Dialog'

Hello,

Kodi: 17.1 Git:20170327-nogitfound Media Center Kodi
plugin.audio.spotify: master branch

I have a error when inicialize the plugin:

12:29:54.396 T:1371923344  NOTICE: LoadJpeg: unable to load /var/lib/kodi/.kodi/addons/plugin.audio.spotify/fanart.jpg
12:29:56.359 T:1806693264   ERROR: GetDirectory - Error getting
12:30:01.370 T:1557119888   ERROR: Previous line repeats 3 times.
12:30:01.370 T:1557119888  NOTICE: Spotify --> Your platform (armv7 System.Platform.Linux)
12:30:10.708 T:1557119888  NOTICE: Spotify --> Starting background service...
12:30:10.750 T:1557119888  NOTICE: Spotify --> Checking remembered_user ..
12:30:10.773 T:1557119888  NOTICE: Spotify --> Cached session found
12:30:10.780 T:1472586640  NOTICE: Spotify --> logged in: 0
12:30:15.937 T:1557119888  NOTICE: Spotify --> starting proxy at port 8090
12:30:15.938 T:1557119888  NOTICE: Spotify --> Setting callback ..
12:30:15.939 T:1557119888  NOTICE: Spotify --> Obtaining user token ..
12:30:15.941 T:1557119888  NOTICE: Spotify --> Encoding header ..
12:30:16.500 T:1505735568   ERROR: warning:couldn't read token from cache
12:30:16.501 T:1505735568  NOTICE: Spotify --> WebService - start helper webservice on port 52308
12:30:17.561 T:1505735568   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'Dialog'
                                            Traceback (most recent call last):
                                              File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 69, in prompt_for_user_token
                                                if xbmc.Dialog().yesno("No webbrowser detected", "The webbrowser could not be auto detected. Do you have one installed ?"):
                                            AttributeError: 'module' object has no attribute 'Dialog'
                                            -->End of Python script error report<--

Local variable 'error' referenced before assignment

I have this error message and I can't login on Spotify

05:39:45 308.158630 T:1685058464  NOTICE: Spotify --> waiting for service...
05:39:46 308.878510 T:1806693280  NOTICE: Spotify --> Your platform (armv7 System.Platform.Linux)
05:39:46 309.226440 T:1685058464  NOTICE: Spotify --> waiting for service...
05:39:47 309.650909 T:1806693280  NOTICE: Spotify --> Starting background service...
05:39:47 310.240234 T:1685058464  NOTICE: Spotify --> waiting for service...
05:39:48 310.440918 T:1806693280  NOTICE: Spotify --> Spotify Callbacks: 05:39:48.174 I [offline_authorizer.cpp:297] Unable to login offline: no such user
05:39:48 310.441925 T:1631789984  NOTICE: Spotify --> Spotify Callbacks: 05:39:48.177 I [ap:1752] Connecting to AP ap.spotify.com:4070
05:39:48 310.662781 T:1631789984  NOTICE: Spotify --> Spotify Callbacks: 05:39:48.398 I [ap:1226] Connected to AP: 23.92.108.98:4070
05:39:48 311.241425 T:1685058464  NOTICE: Spotify --> waiting for service...
05:39:50 312.803833 T:1631789984  NOTICE: Previous line repeats 1 times.
05:39:51 313.778229 T:1631789984  NOTICE: Spotify --> Spotify Callbacks: 05:39:50.539 E [ap:3915] Connection error:  410
05:39:51 313.779327 T:1685058464  NOTICE: Spotify --> waiting for service...
05:39:51 313.779663 T:1631789984   ERROR: None
05:39:51 313.830078 T:1590162336  NOTICE: Spotify --> logged in: 6
05:39:51 313.832275 T:1590162336  NOTICE: Spotify --> logged out
05:39:51 314.110260 T:1806693280  NOTICE: Spotify --> Background service stopped
05:39:52 314.788452 T:1685058464  NOTICE: Spotify --> waiting for service...
05:40:36 358.955566 T:1685058464  NOTICE: Previous line repeats 44 times.
05:40:36 358.955841 T:1685058464   ERROR: warning:couldn't read token from cache
05:40:36 358.956543 T:1685058464  NOTICE: Spotify --> WebService - start helper webservice on port 52308
05:40:38 360.559723 T:1685058464   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'error' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.audio.spotify-master/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/storage/.kodi/addons/plugin.audio.spotify-master/resources/plugincontent.py", line 1128, in main
                                                if self.checkLoginDetails():
                                              File "/storage/.kodi/addons/plugin.audio.spotify-master/resources/plugincontent.py", line 1058, in checkLoginDetails
                                                xbmcgui.Dialog().ok(ADDON_NAME, ADDON.getLocalizedString(11019) + ': ' + error)
                                            UnboundLocalError: local variable 'error' referenced before assignment
                                            -->End of Python script error report<--

Addon version: 1.0.19
OS: OpenELEC 6.95.3 (Kodi 16.1)
Hardware: Raspberry Pi 2

exception in player_monitor.py

15:57:26.136 T:546894065888   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                         - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                        Error Type: <type 'exceptions.TypeError'>
                                        Error Contents: 'NoneType' object has no attribute '__getitem__'
                                        Traceback (most recent call last):
                                          File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/player_monitor.py", line 49, in onPlayBackStarted
                                            self.connect_local = current_playback["device"]["id"] == self.playerid
                                        TypeError: 'NoneType' object has no attribute '__getitem__'
                                        -->End of Python script error report<--

Seek step doesn't work

Forward/backward seek step (i.e. pressing right or left on the keyboard) during playback does not work.
Is this a libspotify limitation?

PS: Thank you for this great addon!

ImportError

2016-09-19-191615_1336x353_scrot

Lately I'm getting that error on multiple machines running version 1.0.22 of your addon. Authorization works perfectly fine but it then fails to list the directories. Tried it on x86 and armv7 both running arch linux as well as kodi-jarvis and -krypton (fresh install).

Nevertheless it was the best spotify addon I've used so far and I'd like to thank you for your hard work!

Doesn't work on kodi 17.3

Hi, and thanks for your work but i just tried it and doesn't seems to work.
Tried it on Kodi 17.3 on PC and OSMC raspberry too.

Spotify Free Account

hey,

is there any way to use this add on with a free (non premium) spotify account? is it not possible, because spotify does not open the music streams for free accounts? or why do i need a premium account for this add on?

greetings :)
fabian

does not start on Rpi2

Hi,

on my Rpi2 (OSMC, Kodi Leia), the addon does not start with the following error:

12:39:12.771 T:1247802352 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: an integer is required Traceback (most recent call last): File "/home/osmc/.kodi/addons/plugin.audio.spotify/service.py", line 13, in <module> MainService() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 42, in __init__ self.spotty = Spotty() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 348, in __init__ self.__spotty_binary = self.get_spotty_binary() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 409, in get_spotty_binary log_msg(__name__, exc) File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 77, in log_msg xbmc.log("%s --> %s" % (ADDON_ID, msg), level=loglevel) TypeError: an integer is required -->End of Python script error report<--

I removed its settings and data -> still the same
I reinstalled -> the same

Thanks in advance!

Spotify Connect stops after 1 song

Hey,
i downloaded and tried your spotify Addon.
Using it through kodi works fine for me.
But when i want to use spotify Connect:
Opening spotify on my mobile, checking my kodi as play source and starting a song..it stops after the song is played and closes the kodi player.
I tried to start playlists, but its still the same..only 1 song played and player gets closed. When i click stop and play on my mobile, player opens again and plays a song..then agaon it stops..
Plesse fix this! Thank you very much! :)

Can you add fanart to the Listitem

Thanks a lot for this plugin.

I have a secondary program that pulls the now playing info from Kodi and displays nowplaying type information. I see that you don't get any fanart from spotify (from what I can tell on the images track).

If you can get fanart - could you set it as below - even a static Spotify fanart would be better than unset. The other option would be to send the thumb as fanart to Kodi? Saves a default screen and looks okay on my testing (does display twice - but better than default)

The fanart list item property is fanart_image. And as used as setProperty

Eg, Such as adding the single line
li.setProperty('fanart_image', thumb)
to parse_spotify_track in utils.py

Thanks

`

def parse_spotify_track(track, is_album_track=True, silenced=False):
    if "track" in track:
        track = track['track']
    if track.get("images"):
        thumb = track["images"][0]['url']
    elif track['album'].get("images"):
        thumb = track['album']["images"][0]['url']
    else:
        thumb = ""
    duration = track['duration_ms']/1000
    
    if silenced:
        url = "http://localhost:%s/track/silence/%s" % (PROXY_PORT, duration)
    else:
        url = "http://localhost:%s/track/%s/%s" % (PROXY_PORT, track['id'], duration)

    li = xbmcgui.ListItem(
        track['name'],
        path=url,
        iconImage="DefaultMusicSongs.png",
        thumbnailImage=thumb
    )
	
    infolabels = {
        "title": track['name'],
        "genre": " / ".join(track["album"].get("genres", [])),
        "year": int(track["album"].get("release_date", "0").split("-")[0]),
        "album": track['album']["name"],
        "artist": " / ".join([artist["name"] for artist in track["artists"]]),
        "rating": str(get_track_rating(track["popularity"])),
        "duration": duration
    }
    if is_album_track:
        infolabels["tracknumber"] = track["track_number"]
        infolabels["discnumber"] = track["disc_number"]
    li.setInfo(type="Music", infoLabels=infolabels)
    li.setProperty("spotifytrackid", track['id'])
    li.setContentLookup(False)
    li.setProperty('do_not_analyze', 'true')
    li.setProperty('fanart_image',thumb)
    li.setMimeType("audio/wave")
    return url, li

Login error

Beste Marcel,
Top plugin, werkt top op m'n laptop.
Ik zit alleen met een probleem. Ik wil de spotify plugin ook gebruiken op mijn m8S+ die loopt op openelec, maar telkens als ik inlog geeft hij dit aan: "Login error: Er is geen ondersteunende browser gevonden voor het authorizatieverzoek naar Spotify." Heb jij enig idee hoe ik dit kan oplossen? De spotify plugin zou mijn kodi setup namelijk helemaal compleet maken.

b.v.d.

Long numbers freeze

When I play long songs like Pink Floyds "Echoes" (23 min) or "Shine on you crazy Diamond" (13 min) after 7/8 minutes the music freezes (no sound) but the timer goes on...

Courious thing is that it's never at the same moment, sometimes it happens after 7 minutes, sometimes after 8 or 6 1/2...

It also happens when I use Spotify Connect, and it won't resume the song when I switch devices, but starts to play the song all over again and again freezes or quits after 7-8 minutes. But here the time on my smartphone which is controlling playback also stops... (also happens the first time)

Possible Kodi 17 issues?

I installed this for the first time with kodi v17 alpha 3 on windows and always get a failed to login message when attempting to access the addon.

The log shows a few failed attempts such as

11:53:53 T:3816 NOTICE: Spotify --> Your platform (x86_64 System.Platform.Windows) 11:53:53 T:3816 NOTICE: Spotify --> Service already running 11:53:54 T:6416 NOTICE: Spotify --> Spotify Callbacks: 10:53:54.096 E [ap:1694] AP Socket Error: No connection could be made because the target machine actively refused it. (10061) 11:53:54 T:6416 ERROR: None 11:53:54 T:6416 NOTICE: Spotify --> Spotify Callbacks: 10:53:54.096 E [ap:3915] Connection error: 101 11:53:54 T:6416 ERROR: None 11:53:54 T:6416 NOTICE: Spotify --> Spotify Callbacks: 10:53:54.096 I [ap:1752] Connecting to AP ap.gslb.spotify.com:80 11:53:54 T:3556 NOTICE: Spotify --> waiting for service... 11:53:54 T:6416 NOTICE: Spotify --> Spotify Callbacks: 10:53:54.213 I [ap:1226] Connected to AP: 74.208.238.62:80 11:53:54 T:6416 NOTICE: Spotify --> Spotify Callbacks: 10:53:54.345 E [ap:1694] AP Socket Error: Connection closed by peer (10053) 11:53:54 T:6416 ERROR: None 11:53:54 T:6416 NOTICE: Spotify --> Spotify Callbacks: 10:53:54.346 E [ap:3915] Connection error: 112

I'm not sure at this stage if it is a kodi v17 issue or something else as this is the first install. On initial install it directed me to a web page where I authorised the kodi addon.

If there's any other info I can provide to help troubleshoot please let me know.

Cannot play on Raspberry Pi2 (LibreELEC) after upgrading to 1.0.20

First of all, that's really a great plugin!

It's strange that after upgrading to 1.0.20 (I am very sure I didn't change anything), my spotify (RPi2 powered by LibreELEC) cannot play more that 12 seconds (around), every playlist, every album, even every song. My testing results are:

  1. I have tried to uninstall, remove the plugin and clean all user data as well.
  2. Ver. 1.0.20 on RPi2 powered by LibreELEC, music will stop around 12 seconds, all songs. (Precisely, it will "mute" after 12 seconds, but the progress bar won't stop.)
  3. Ver. 1.0.20 on Windows 7 (Kodi 16.0), music plays correctly.
  4. Ver. 1.0.19 on RPi2 powered by LibreELEC, music plays correctly.

So I downgrade to 1.0.19 (Also disabling auto-update). Attaching a screenshot for your reference. Could you help me to verify if this is my configuration mistake or something wrong with 1.0.20?

Thanks.
2016-09-04_14-29-09

Cannot connect with creditentials

Getting "No credentials have been set or the login failed.
Please enter your credentials in the next settings dialog."
When trying to open the addon. I'm using the version 1.1.29 on osmc, kodi 17.3. and tried both email and user id.

RPI3

Hey there,
is there any easy way to get this working for my rpi3? I am not rly familiar with Python/Kodi yet.
Kind regards
Niruella

Problem logging in with username containing international characters

Hi,

I'm testing your plugin (1.0.26) on Kodi 17.3 and I'm having issues with logging in for the first time using a username with international characters. I know this issue has already been discussed in the forum, but there it appears to have been fixed in 2016. Could it be that the issue has resurfaced?

The error message is (after enabling extra debug output):

22:44:10.964 T:140443871549184 NOTICE: Spotify --> Your platform (x86_64 System.Platform.Linux) 22:44:11.543 T:140443871549184 NOTICE: Spotify --> Starting background service... 22:44:11.547 T:140443871549184 NOTICE: Spotify --> Checking remembered_user .. 22:44:11.548 T:140443871549184 NOTICE: Spotify --> TRACE: File "/home/david/.kodi/addons/plugin.audio.spotify/spotifyservice.py", line 9, in <module> service.main() File "/home/david/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 286, in main logMsg("TRACE: " + ( ''.join(traceback.format_stack()) ) ) 22:44:11.548 T:140443871549184 NOTICE: Spotify --> EXCEPTION in background service: argument 2: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe4' in position 6: ordinal not in range(128) 22:44:11.548 T:140443871549184 ERROR: Traceback (most recent call last): 22:44:11.548 T:140443871549184 ERROR: File "/home/david/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 227, in main 22:44:11.548 T:140443871549184 ERROR: if not do_login(sess, app): 22:44:11.548 T:140443871549184 ERROR: File "/home/david/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 143, in do_login 22:44:11.548 T:140443871549184 ERROR: session.login(username, password, True) 22:44:11.548 T:140443871549184 ERROR: File "/home/david/.kodi/addons/plugin.audio.spotify/resources/libs/spotify/utils/decorators.py", line 23, in __call__ 22:44:11.548 T:140443871549184 ERROR: result = self._func(*args, **kwargs) 22:44:11.548 T:140443871549184 ERROR: File "/home/david/.kodi/addons/plugin.audio.spotify/resources/libs/spotify/session.py", line 325, in login 22:44:11.548 T:140443871549184 ERROR: self.__session_struct, username, password, remember_me, blob 22:44:11.548 T:140443871549184 ERROR: File "/home/david/.kodi/addons/plugin.audio.spotify/resources/libs/_spotify/session.py", line 146, in login 22:44:11.548 T:140443871549184 ERROR: )(*args) 22:44:11.548 T:140443871549184 ERROR: ArgumentError: argument 2: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe4' in position 6: ordinal not in range(128) 22:44:11.555 T:140443484419840 ERROR: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/home/david/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py", line 103, in run self.__mainloop.loop(self.__session) File "/home/david/.kodi/addons/plugin.audio.spotify/resources/libs/spotify/__init__.py", line 166, in loop timeout = session.process_events() ReferenceError: weakly-referenced object no longer exists 22:44:11.556 T:140443871549184 NOTICE: Spotify --> Background service stopped

As a workaround, I edited
~/.kodi/addons/plugin.audio.spotify/resources/playbackservice.py

And if I change line 142 (i.e. second last line in do_login()) from:
session.login(username, password, True)
to
session.login(SETTING("username"), password, True)

i.e. to not use a username which has been decoded from utf-8...then it works...

Add to Playlist

Hi, Thank you for a great addon....Would it be possible to include "Add to Playlist", in the context menu of a song that is already in a playlist ?...The spotify on iPhone allows you to do this, which allows you to add a song from a playlist to another playlist, or create a new playlist where u can add that song to.

Once again, really appreaciate the addon

Playback fails about 50% of the time from spotify connect

Great work.
Setup:
Odroid C2
Libreelec V8.0.2
Plugins enabled: Twitch, Youtube, NRK, Spotify
Spotify connect from Oneplus3

Behavior: Playing a single track works about 50% of the time. This is the log from when it crashed.
I have had this plugin installed for a few month and it has not been working until i tried it a few days ago when i saw the spotify connect player.
For it to start working i cleared everything belonging to this plugin.
Some times kodi freezes for a half a minute or so, and rarely it freezes entirely and a hard reset is needed.
A playback failed error message pops up sometimes.

Also notable:
After some time playback stops working entirely and a reboot helps.

If requested i will post a debug log where i spam commands (skipping, seeking etc).

Debug log:
22:03:46.755 T:546459087072 NOTICE: plugin.audio.spotify --> Available Backends : - alsa (default) - pipe 22:03:46.941 T:546425532640 DEBUG: UpdateMenuLanguage - using TV menu language is disabled 19:05:23.278 T:546459087072 NOTICE: plugin.audio.spotify --> started webproxy at port 52308 19:05:23.283 T:546891251936 NOTICE: Twitch: Service: Start 19:05:23.283 T:546891251936 DEBUG: Twitch: Player: Start 19:05:23.662 T:546433921248 INFO: ## LibreELEC Addon ## system::set_hostname ## LibreELEC 19:05:23.664 T:546433921248 INFO: ## LibreELEC Addon ## system::set_keyboard_layout ## us 19:05:23.664 T:546433921248 INFO: ## LibreELEC Addon ## system::set_keyboard_layout ## loadkmap < ls -1 /usr/lib/keymaps/*/us.bmap 19:05:23.736 T:546433921248 INFO: ## LibreELEC Addon ## system::updateThread ## Started 19:05:23.737 T:546433921248 INFO: ## LibreELEC Addon ## system::set_auto_update ## manual 19:05:23.783 T:545133687008 INFO: ## LibreELEC Addon ## _service_::run ## WAITING: 19:05:23.812 T:545142075616 INFO: ## LibreELEC Addon ## xdbus Monitor started. ## 19:05:24.027 T:546459087072 DEBUG: plugin.audio.spotify --> {"accessToken":"***","expiresIn":3600,"tokenType":"Bearer","scope":["playlist-read-private","playlist-read-collaborative","user-follow-read","playlist-modify-private","user-read-email","user-read-private","user-modify-playback-state","user-follow-modify","user-library-read","user-library-modify","playlist-modify-public","user-read-playback-state","user-read-currently-playing","user-read-birthdate","user-top-read"]} 19:05:24.028 T:546459087072 DEBUG: plugin.audio.spotify --> Token from librespot: {'access_token': '***', 'expires_in': 3600, 'expires_at': 1499025924, 'token_type': 'Bearer', 'scope': 'playlist-read-private playlist-read-collaborative user-follow-read playlist-modify-private user-read-email user-read-private user-modify-playback-state user-follow-modify user-library-read user-library-modify playlist-modify-public user-read-playback-state user-read-currently-playing user-read-birthdate user-top-read', 'refresh_token': '***'} 19:05:24.028 T:546459087072 NOTICE: plugin.audio.spotify --> Retrieved auth token 19:05:24.414 T:546459087072 NOTICE: plugin.audio.spotify --> Logged in to Spotify - Username: 1156860848 19:05:24.415 T:546459087072 DEBUG: plugin.audio.spotify --> Userdetails: {u'product': u'premium', u'display_name': u'nope', u'external_urls': {u'spotify': u'https://open.spotify.com/user/1156860848'}, u'country': u'NO', u'uri': u'spotify:user:****', u'birthdate': u'***', u'id': u'***', u'href': u'https://api.spotify.com/v1/users/1156860848', u'followers': {u'total': 6, u'href': None}, u'images': [{u'url': u'https://scontent.xx.fbcdn.net/v/t1.0-1/s200x200/1234382_10200466451319952_689132794_n.jpg?oh=66f64c11d2120337f16ee245ef6fad4e&oe=5A0FDE2A', u'width': None, u'height': None}], u'type': u'user', u'email': u'nope'} 19:05:24.415 T:545058189536 NOTICE: plugin.audio.spotify --> Start Spotify Connect Daemon 19:05:24.447 T:545058189536 DEBUG: plugin.audio.spotify --> INFO:librespot: librespot (). Built on 2017-06-14. 19:05:24.508 T:545058189536 DEBUG: plugin.audio.spotify --> *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. 19:05:24.508 T:545058189536 DEBUG: plugin.audio.spotify --> *** WARNING *** Please fix your application to use the native API of Avahi! 19:05:24.509 T:545058189536 DEBUG: plugin.audio.spotify --> *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=librespot> 19:05:24.634 T:545058189536 DEBUG: plugin.audio.spotify --> INFO:librespot::session: Connecting to AP "gew1-accesspoint-b-dz71.ap.spotify.com:4070" 19:05:25.024 T:545058189536 DEBUG: plugin.audio.spotify --> INFO:librespot::session: Authenticated as "1156860848" ! 19:05:25.025 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::session: new Session[0] 19:05:25.025 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: new Spirc[0] 19:05:25.025 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::player: new Player[0] 19:05:25.025 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::mercury: new MercuryManager 19:05:25.025 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::session: Session[0] strong=3 weak=2 19:05:25.025 T:545058189536 DEBUG: plugin.audio.spotify --> INFO:librespot::session: Country: "NO" 19:05:25.114 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::mercury: subscribed uri=hm://remote/3/user/1156860848/ count=0 19:05:25.199 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeHello "Kodi (LibreELEC)" c18c9678c9166d23fea7e2ea42763474ef026717 1 1499022325025 19:05:25.199 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "webapi" webapi 78739489 0 19:05:25.322 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 1 1499022311936 19:05:25.416 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 29 1499022311936 19:05:25.520 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "Tyriveien" 5c5b1787b5771730cd8f012bb97a4c0184625688 425 1499022324612 19:05:27.785 T:547677523968 DEBUG: ------ Window Deinit (DialogNotification.xml) ------ 19:05:27.921 T:546425532640 DEBUG: UpdateAudioSystemStatus - no CEC capable amplifier found 19:05:27.921 T:547677523968 DEBUG: ------ Window Init (DialogNotification.xml) ------ 19:05:33.702 T:547677523968 DEBUG: ------ Window Deinit (DialogNotification.xml) ------ 19:05:44.913 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 59 1499022343864 19:05:45.572 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 60 1499022344486 19:05:47.546 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeHello "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 61 1499022344486 19:05:47.593 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "webapi" webapi 78761869 0 19:05:47.721 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "Tyriveien" 5c5b1787b5771730cd8f012bb97a4c0184625688 426 1499022347022 19:05:47.796 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 30 1499022344486 19:05:47.847 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "Kodi (LibreELEC)" c18c9678c9166d23fea7e2ea42763474ef026717 2 1499022347546 19:05:51.748 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeLoad "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 2 0 19:05:51.748 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::player: command=Load(SpotifyId(u128 { high: 8628615504486813098, low: 13666332449274282629 }), false, 553) 19:05:51.749 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::metadata: new MetadataManager 19:05:51.985 T:545557901536 DEBUG: Thread JobWorker 545557901536 terminating (autodelete) 19:05:51.985 T:546450698464 DEBUG: Thread JobWorker 546450698464 terminating (autodelete) 19:05:51.987 T:546442309856 DEBUG: Thread JobWorker 546442309856 terminating (autodelete) 19:05:52.004 T:547660734688 DEBUG: Thread JobWorker 547660734688 terminating (autodelete) 19:05:52.261 T:547677511904 DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc 19:05:52.261 T:547677511904 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd 19:05:52.329 T:547677523968 DEBUG: Loading settings for http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers(http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288) 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv 19:05:52.331 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (PAPlayer) 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: VideoPlayer 19:05:52.331 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players 19:05:52.332 T:547677523968 DEBUG: CFileCache::Open - opening <track/3DXncPQOG4VBw3QHh3S817/288> using cache 19:05:52.332 T:547677523968 DEBUG: CurlFile::Open(0x2ce8df0) http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288 19:05:52.333 T:547677523968 INFO: easy_aquire - Created session to http://localhost 19:06:12.448 T:547677523968 ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28) 19:06:12.448 T:547677523968 ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288 19:06:12.448 T:547677523968 ERROR: Open - failed to open source <http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288> 19:06:12.448 T:547677523968 ERROR: Init: Error opening file http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288 19:06:12.448 T:547677523968 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288 19:06:12.448 T:547677523968 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder 19:06:12.448 T:547677523968 DEBUG: OnQueueNextItem: play state was 1, starting 1 19:06:12.448 T:547677523968 DEBUG: OnPlayBackStopped: play state was 1, starting 0 19:06:12.448 T:547677523968 ERROR: Playlist Player: skipping unplayable item: 0, path [http://localhost:52308/track/3DXncPQOG4VBw3QHh3S817/288] 19:06:12.448 T:547677523968 DEBUG: Playlist Player: one or more items failed to play... aborting playback 19:06:12.448 T:547677523968 DEBUG: ------ Window Init (DialogConfirm.xml) ------ 19:06:12.448 T:547677523968 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY 19:06:12.456 T:547677511904 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc 19:06:12.456 T:547677511904 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop 19:06:12.533 T:546891251936 DEBUG: Twitch: Player: |onPlayBackStopped| 19:06:15.378 T:546459087072 NOTICE: plugin.audio.spotify --> playback stopped

Playback does not work

Hey,
your Spotify addon is running on my RPI2 (via libreelec) and on my PC, but I am not able to play any song. Nothing happens when I if click on a song.

Is this is a known issue on Kodi 17 Beta 3+?

finish LMS support

Current LMS-support is a bit limited.
Spotify recommendations and Radio is not working if LMS is selected as playback target.

Authentication/Authorization problems on libreelec

A dialog keeps popping up saying:
"The default browser should now be opened, follow the directions to authorize this app on Spotify"

... which is a bit hard on LibreElec 8.0.2 (Raspberry Pi 3)
when looking into the logs, it keeps repeating "Waiting for authentication token...", although all this might probably just be a symptom covering an earlier error, also seen in the logs.

Here's a grep on spotify from kodi.log:

10:21:40.142 T:1725952928  NOTICE: plugin.audio.spotify --> Architecture detected. Using librespot binary /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_arm/librespot
10:21:40.142 T:1725952928  NOTICE: plugin.audio.spotify --> /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_arm/librespot: error while loading shared libraries: /storage/.kodi/addons/plugin.audio.spotify/resources/lib/librespot/linux_arm/libasound.so.2: internal error
10:21:40.142 T:1725952928  NOTICE: plugin.audio.spotify --> Error while verifying librespot. Local playback is disabled.
10:21:40.152 T:1696748448  NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
10:24:13.821 T:1725952928  NOTICE: plugin.audio.spotify --> Launching system-default browser
10:24:13.821 T:1725952928  NOTICE: plugin.audio.spotify --> Waiting for authentication token...
10:24:41.830 T:1725952928  NOTICE: plugin.audio.spotify --> Waiting for authentication token...
10:25:11.839 T:1725952928  NOTICE: plugin.audio.spotify --> Waiting for authentication token...
10:25:41.848 T:1725952928  NOTICE: plugin.audio.spotify --> Waiting for authentication token...
10:25:43.848 T:1725952928  NOTICE: plugin.audio.spotify --> Waiting for authentication token...

This must have occured some time after version 1.1.16

Skipping track from spotify connect device fails

When playing a track from a playlist works, skipping track from phone fails.
After a couple of times pressing play/pause the track starts playing.
This is not included in the log, as i assume it is related to #36

19:35:39.619 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNext "ONEPLUS A3003" 1d3b637f4b2ee147e1222d7b9bb73a3d4a592550 16 0 19:35:39.670 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::player: command=Load(SpotifyId(u128 { high: 10743718962674682985, low: 12442232790521455826 }), true, 0) 19:35:39.726 T:545058189536 DEBUG: plugin.audio.spotify --> DEBUG:librespot::spirc: kMessageTypeNotify "Kodi (LibreELEC)" c18c9678c9166d23fea7e2ea42763474ef026717 46 1499024139619 19:35:39.764 T:547677511904 DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc 19:35:39.764 T:547677511904 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear 19:35:40.649 T:547677511904 DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc 19:35:40.649 T:547677511904 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd 19:35:40.730 T:547677523968 DEBUG: DoWork - Saving file state for audio item http://localhost:52308/track/7FNyRafAkUgto3txPZhiO6/224 19:35:40.738 T:547677523968 DEBUG: Loading settings for http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184 19:35:40.739 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers(http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184) 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv 19:35:40.740 T:547677523968 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio 19:35:40.740 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players 19:35:40.740 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (PAPlayer) 19:35:40.740 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1 19:35:40.740 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1 19:35:40.740 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: VideoPlayer 19:35:40.740 T:547677523968 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players 19:35:40.741 T:547677511904 DEBUG: CAnnouncementManager - Announcement: OnSpeedChanged from xbmc 19:35:40.741 T:547677511904 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnSpeedChanged 19:35:40.822 T:547646910688 DEBUG: CActiveAE::DiscardStream - audio stream deleted 19:35:40.822 T:547646910688 DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted 19:35:40.823 T:547660734688 DEBUG: Previous line repeats 2 times. 19:35:40.823 T:547660734688 DEBUG: Thread FileCache 547660734688 terminating 19:35:40.830 T:545557901536 DEBUG: OnPlayBackStopped: play state was 2, starting 1 19:35:40.830 T:545557901536 DEBUG: Thread PAPlayer 545557901536 terminating 19:35:40.831 T:547677523968 DEBUG: CFileCache::Open - opening <track/4xlrALxuaCf9yZBHJeTSG6/184> using cache 19:35:40.831 T:547677523968 DEBUG: CurlFile::Open(0x5c47eb0) http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184 19:35:43.823 T:547646910688 DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted 19:35:52.044 T:546442309856 DEBUG: Thread JobWorker 546442309856 terminating (autodelete) 19:36:00.954 T:547677523968 ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28) 19:36:00.954 T:547677523968 ERROR: CCurlFile::Open failed with code 0 for http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184 19:36:00.954 T:547677523968 ERROR: Open - failed to open source <http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184> 19:36:00.954 T:547677523968 ERROR: Init: Error opening file http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184 19:36:00.954 T:547677523968 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184 19:36:00.954 T:547677523968 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder 19:36:00.954 T:547677523968 DEBUG: OnQueueNextItem: play state was 1, starting 1 19:36:00.954 T:547677523968 DEBUG: OnPlayBackStopped: play state was 1, starting 0 19:36:00.954 T:547677523968 ERROR: Playlist Player: skipping unplayable item: 0, path [http://localhost:52308/track/4xlrALxuaCf9yZBHJeTSG6/184] 19:36:00.954 T:547677523968 DEBUG: Playlist Player: one or more items failed to play... aborting playback 19:36:00.954 T:547677523968 DEBUG: ------ Window Init (DialogConfirm.xml) ------ 19:36:00.960 T:547677511904 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc 19:36:00.960 T:547677511904 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop 19:36:00.976 T:546891251936 DEBUG: Twitch: Player: |onPlayBackStopped| 19:36:01.117 T:546442309856 DEBUG: Thread JobWorker start, auto delete: true 19:36:01.117 T:546442309856 DEBUG: DoWork - Saving file state for audio item http://localhost:52308/track/7FNyRafAkUgto3txPZhiO6/224 19:36:01.117 T:547677523968 DEBUG: CDirectoryProvider[addons://sources/video/]: refreshing.. 19:36:01.118 T:547677523968 DEBUG: CDirectoryProvider[addons://sources/audio/]: refreshing.. 19:36:01.118 T:545557901536 DEBUG: Thread JobWorker start, auto delete: true 19:36:01.118 T:547677523968 DEBUG: CDirectoryProvider[addons://sources/executable/]: refreshing.. 19:36:01.118 T:547677523968 DEBUG: CDirectoryProvider[addons://sources/image/]: refreshing.. 19:36:01.118 T:547660734688 DEBUG: Thread JobWorker start, auto delete: true 19:36:01.282 T:546450698464 DEBUG: Previous line repeats 1 times. 19:36:01.282 T:546450698464 DEBUG: DoWork - took 152 ms to load special://masterprofile/Thumbnails/0/0ebce5ef.png 19:36:03.610 T:546459087072 NOTICE: plugin.audio.spotify --> playback stopped

Stream with high quality

Hi there and thanks for the script! I'm using it on a rpi3-openelec. I'm a bit of a music nerd and I think that there should be an option to chose high quality streams. Is that posible to fix? Right now I think it's using the default quality but I can be wrong. Keep up the good work.

// Ola

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.