Kodi Community Forum
Beta Spotify for Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: Beta Spotify for Kodi (/showthread.php?tid=265356)



RE: Spotify for Kodi - trihy - 2023-02-09

(2023-01-20, 22:39)baconbeak1998 Wrote: MarcelVeldt's original plugin seems to be removed and ldsz' version - although still functional for some users - seems not to be actively maintained anymore. I took the liberty of writing my own Spotify plugin for users who don't mind compiling their own binary. As of right now, it's only working on linux-based installations, but I'll work on Windows and Mac releases in the (near) future too.

I have a working version available for testing/development in this github repo: https://github.com/jhjdekker98/plugin.audio.spotifyd-client

If anyone wants to test it out and give me some feedback in the issues section, be my guest.

Great to see some progress. Will try when windows version comes.


RE: Spotify for Kodi - techie67 - 2023-02-11

Habe es nach etwas Gebastel ans Laufen bekommen: Siehe https://github.com/ldsz/plugin.audio.spotify/issues/35


RE: Spotify for Kodi - DarrenHill - 2023-02-11

@techie67 - the forum language is English please.

Use of services like Google Translate are fine if required.


RE: Spotify for Kodi - techie67 - 2023-02-11

(2023-02-11, 19:29)techie67 Wrote: Habe es nach etwas Gebastel ans Laufen bekommen: Siehe https://github.com/ldsz/plugin.audio.spotify/issues/35

Sorry for writing in german.
After some fiddling around I got it working: Please look at: https://github.com/ldsz/plugin.audio.spotify/issues/35   for details.


RE: Spotify for Kodi - ZumZum13 - 2023-02-12

Hello everyone.
Any Help will be greatly appreciated  Smile

Issue: Can't open Spotify Addon.
Message: The Default browser should now be opened, Follow the directions to authorize this app on spotify
Kodi Log: 1. b'Launching system-default browser' 2. b'Waiting for authentication token...' 3. Python Exception
Platform: RPI4 Bullseye Lite 64bit, Kodi 19 Matrix, Spotify LDSZ 1.2.3

Thank You


RE: Spotify for Kodi - izprtxqkft - 2023-02-12

(2023-02-12, 19:24)ZumZum13 Wrote: Hello everyone.
Any Help will be greatly appreciated  Smile

Issue: Can't open Spotify Addon.
Message: The Default browser should now be opened, Follow the directions to authorize this app on spotify
Kodi Log: 1. b'Launching system-default browser' 2. b'Waiting for authentication token...' 3. Python Exception
Platform: RPI4 Bullseye Lite 64bit, Kodi 19 Matrix, Spotify LDSZ 1.2.3

Thank You
i can tell you that is not nearly enough information. that information is equally as good as saying "it got an error" and nothing else.


RE: Spotify for Kodi - ZumZum13 - 2023-02-12

Can you describe what kind information i'm missing? i have to throw full startup log here?  Angel

Thank you for reply


RE: Spotify for Kodi - techie67 - 2023-02-13

I would suggest to use a kodi installation including spotify addon on another computer, e.g. a windows machine to log in to spotify and generate the relevant files.
Then copy the files in the folder /storage/.kodi/userdata/addon_data/plugin.audio.spotify .
There should exist a credentials.json and a settings.xml
and optionally a volume and a directory "files".
In the credentials.json you can find the credentials you entered in kodi onthe addon settings page.
It should look like this:

{"username":"your_spotify_username","auth_type":1,"auth_data":"<your_spotify_token"}


RE: Spotify for Kodi - ZumZum13 - 2023-02-13

Hi Techie,
Thanks for reply.

As u asked, i installed Kodi on Win 11 with Spotify addon-on and launched successfully on windows machine. Then copied credential files from Win to PI Kodi directory, but issue still exists, and nothing changed in logs and app behavior.

.kodi/userdata/addon_data/plugin.audio.spotify# ls -la
total 20
drwxr-xr-x 2 root root 4096 Feb 13 22:54 .
drwxr-xr-x 6 root root 4096 Feb 12 19:50 ..
-rwxr-xr-x 1 root root  281 Feb 13 22:42 credentials.json
-rwxr-xr-x 1 root root 1186 Feb 13 22:28 settings.xml
-rwxr-xr-x 1 root root    5 Feb 13 22:42 volume

I'm i missing anything? i checked authentication files and everything seems OK (Username,Password, Auth_token)


RE: Spotify for Kodi - ZumZum13 - 2023-02-13

I also noticed Spotify addon throws some error on app startup and screen. i don't know if this and login issue is related to each other  Undecided

 INFO <general>: plugin.audio.spotify --> b'reported architecture: aarch64'
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 "/root/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 431, in test_spotty
                                                       spotty = subprocess.Popen(
                                                     File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
                                                       self._execute_child(args, executable, preexec_fn, close_fds,
                                                     File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
                                                       raise child_exception_type(errno_num, err_msg, err_filename)
                                                   FileNotFoundError: [Errno 2] No such file or directory: '/root/.kodi/addons/plugin.audio.spotify/resources/lib/spotty/arm-linux/spotty-hf'


RE: Spotify for Kodi - techie67 - 2023-02-13

To be honest I had the same problem as you.
I tried a lot of things and got it finally working. I thought those point written in my threads above.
I will try to think about further steps i did and post them here in case.

I have a folder called files with many subfolders in the folder /storage/.kodi/userdata/addon_data/plugin.audio.spotify

Have you checked your log for errors refering to the spotify addon.
I had corrected some of those in the python files. From my point of view  the errors came from python 3
and maybe rust version  differences/conflicts.


RE: Spotify for Kodi - ZumZum13 - 2023-02-13

Techie,
I Tried with "files" directory too. But in my case, only folder (c7) and file exists in files directory.
Then i switched to "only config files" Smile

I understand your thoughts. It's late night in my country and tomorrow i'll try to reinstall kodi and move this authorization files again.

We should be near Smile Thanks


RE: Spotify for Kodi - techie67 - 2023-02-13

Sleep well!

Please have a look at:
https://github.com/ldsz/plugin.audio.spotify/issues/35


RE: Spotify for Kodi - ZumZum13 - 2023-02-13

Excuse me for many posts, somehow i can't find edit button (or not eligible)
I'll try to find out this python issues also.

python --version
Python 2.7.18

python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

which python
/usr/bin/python
whereis python
python: /usr/bin/python3.9 /usr/bin/python2.7 /usr/bin/python /usr/lib/python3.9 /usr/lib/python2.7 /etc/python3.9 /etc/python2.7 /usr/local/lib/python3.9 /usr/local/lib/python2.7 /usr/include/python3.9 /usr/share/python /usr/share/man/man1/python.1.gz


RE: Spotify for Kodi - fortune - 2023-02-14

why do we see it as 1411 kbps pcm? Is spotify source wav?