Comments (8)
I tried to update spotty binary to 0.35 but this version as an issues with special characters in login name. That why I leave 0.20.
I understand this can be an issues for others. More work must be done to allow special characters with Spotty 0.35.
You might be the first to try it on Arch, I didn't.
In your case, the HTTP server used to serve the downloaded song is running but not data are available.
from plugin.audio.spotify.
Well, that's a valid reason for not updating.
Regarding the second part of your answer: Does that mean that downloading the songs from the spotify server does not work? Does the addon starts a server to let kodi download the song from this server? In the addons data folder, I could see some binary files which could be downloaded songs, but I have no idea what data format these files have.
from plugin.audio.spotify.
I think they are wave file. But you have a partial transfer, I guess they're very small.
Maybe this is linked to the authentification issues. The plugin generate the header of the file but can't download from Spotify.
What was the issues with spotty 0.20 ?
from plugin.audio.spotify.
With spotty 0.20, I could not authenticate at all. If you are interested, I could roll back to version 0.20 and send you the error logs (and I don't use any special characters, but long random strings of alphanumerical characters as password).
from plugin.audio.spotify.
Here are the error messages I get when I try to use spotty 0.20:
2021-04-13 11:51:25.075 T:90584 INFO <general>: plugin.audio.spotify --> b'trying AP Port 443'
2021-04-13 11:51:40.232 T:90607 INFO <general>: plugin.audio.spotify --> b'trying AP Port 443'
2021-04-13 11:51:55.387 T:90650 INFO <general>: plugin.audio.spotify --> b'trying AP Port 443'
2021-04-13 11:52:03.507 T:577 INFO <general>: JSONRPC Server: New connection added
2021-04-13 11:52:10.541 T:90682 INFO <general>: plugin.audio.spotify --> b'trying AP Port 443'
2021-04-13 11:52:23.259 T:90715 INFO <general>: initializing python engine.
2021-04-13 11:52:23.988 T:90715 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: '>=' not supported between instances of 'tuple' and 'int'
Traceback (most recent call last):
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 121, in _internal_call
r.raise_for_status()
File "/var/lib/kodi/.kodi/addons/script.module.requests/lib/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/me/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/plugin_content.py", line 57, in __init__
self.browse_main()
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/plugin_content.py", line 353, in browse_main
cur_user_label = self.sp.me()["display_name"]
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 570, in me
return self._get('me/')
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 148, in _get
return self._internal_call('GET', url, payload, kwargs)
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 124, in _internal_call
raise SpotifyException(r.status_code,
spotipy.client.SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/me/:
The access token expired
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/plugin.py", line 14, in <module>
PluginContent()
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/plugin_content.py", line 62, in __init__
log_exception(__name__, exc)
File "/var/lib/kodi/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 90, in log_exception
log_msg(format_exc(sys.exc_info()), xbmc.LOGDEBUG)
File "/usr/lib/python3.9/traceback.py", line 167, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
File "/usr/lib/python3.9/traceback.py", line 120, in format_exception
return list(TracebackException(
File "/usr/lib/python3.9/traceback.py", line 493, in __init__
context = TracebackException(
File "/usr/lib/python3.9/traceback.py", line 508, in __init__
self.stack = StackSummary.extract(
File "/usr/lib/python3.9/traceback.py", line 340, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'tuple' and 'int'
-->End of Python script error report<--
2021-04-13 11:52:24.022 T:90666 ERROR <general>: GetDirectory - Error getting plugin://plugin.audio.spotify/
from plugin.audio.spotify.
I'm running Arch as well (Kodi 19, Arch 5.11.13) , using the default Spotty binary. I'm able to authenticate (using the connect via phone method) however when I try to play a song I too am getting there error:
CCurlFile::FillBuffer - Failed: Transferred a partial file(18)
from plugin.audio.spotify.
If you go to this URL : https://www.spotify.com/fr/account/apps/
Can you see the app Spotify for Kodi ?
from plugin.audio.spotify.
I created a new issue but can see that you guys are already talking about it here. I'm using default spotty and also getting partial file. If I follow your link I see the app Spotify for Kodi
from plugin.audio.spotify.
Related Issues (20)
- Waiting for authentication token... HOT 1
- Playback via Spotify Connect stops after one track HOT 1
- Track Playback not Starting - Changing Code in httpproxy.py:send_audio_stream Fixes It HOT 3
- Can't login on Windows 10 HOT 1
- Addon crashes when playing music HOT 1
- Previously saved Spotify login details fail to login after restarting Kodi 19.3 using LibreElec 10 HOT 2
- Please connect this device with the Spotify App on your phone to Login or enter your credentials in the Settings dialog" HOT 2
- spotify connect no sound HOT 1
- liked songs HOT 1
- Kodi crashes after install pluging on Windows
- Spotify won't play music on Nvidia Shield TV 2019 Android TV
- Spotify Connect - Contribution
- Audio not playing (with some logs) HOT 1
- Use without browser? HOT 2
- Spotify playback status not syncing
- created by accident HOT 1
- add-on still being maintained?
- Spotify Connect messes up add-on HOT 4
- Not working with LE11 and Kodi 20.0 (Nexus) HOT 7
- I have it up and running on the nighly from 20230210. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin.audio.spotify.