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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
RE: Spotify for Kodi - User 224999 - 2016-12-23 (2016-12-23, 15:41)sakos Wrote: What about the frequency? How often shall this procedure to be done? Only once, it's needed for the oauth authentication where you grant the plugin access to your spotify data. After that, the plugin can request a refresh token on it's own without the need for a webbrowser. Offcourse, if you login to the spotify webpage-accountdetails and you delete the app permissions you'll have to do it again. RE: Spotify for Kodi - jcjdammers - 2016-12-24 Hi, I am using LibreELEC 7.0.2. and the Spotify addon is not able to logon and it times out after a few minutes. I am using my facebook account. I have copied the log below. What am I doing wrong? Any help is much appreciated. Thanks, Jeroen 10:19:00 T:140010347026176 NOTICE: Spotify --> Your platform (x86_64 System.Platform.Linux) 10:19:01 T:140010347026176 NOTICE: Spotify --> Starting background service... 10:19:01 T:140010347026176 NOTICE: Spotify --> Checking remembered_user .. 10:19:01 T:140010347026176 NOTICE: Spotify --> Cached session found 10:19:01 T:140009407502080 NOTICE: Spotify --> logged in: 0 10:19:06 T:140010347026176 NOTICE: Spotify --> starting proxy at port 8090 10:19:06 T:140010347026176 NOTICE: Spotify --> Setting callback .. 10:19:06 T:140010347026176 NOTICE: Spotify --> Obtaining user token .. 10:19:06 T:140010347026176 NOTICE: Spotify --> Encoding header .. 10:19:06 T:140011739522816 ERROR: warning:couldn't read token from cache 10:19:06 T:140011739522816 NOTICE: Spotify --> WebService - start helper webservice on port 52308 10:19:07 T:140011739522816 NOTICE: Spotify --> Waiting for authentication token... 10:20:00 T:140010363811584 NOTICE: Previous line repeats 53 times. 10:20:00 T:140010363811584 NOTICE: ES: Client from 127.0.0.1 timed out 10:20:01 T:140011739522816 NOTICE: Spotify --> Waiting for authentication token... 10:21:08 T:140011739522816 NOTICE: Previous line repeats 66 times. 10:21:08 T:140011739522816 NOTICE: Spotify --> WebService - stop called 10:21:08 T:140009306789632 ERROR: 127.0.0.1 - - [24/Dec/2016 10:21:08] "QUIT / HTTP/1.1" 200 - 10:21:08 T:140011739522816 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'spotipy.oauth2.SpotifyOauthError'> Error Contents: Bad Request 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 1146, in main if self.checkLoginDetails(): File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails self.token = util.prompt_for_user_token(username) File "/storage/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 59, in prompt_for_user_token token_info = sp_oauth.get_access_token(code) File "/storage/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/oauth2.py", line 213, in get_access_token raise SpotifyOauthError(response.reason) SpotifyOauthError: Bad Request -->End of Python script error report<-- 10:21:08 T:140011925334080 ERROR: GetDirectory - Error getting plugin://plugin.audio.spotify/ 10:21:08 T:140011925334080 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/) failed RE: Spotify for Kodi - jcjdammers - 2016-12-24 I also installed Chromium browser. When I start Spotify then it launches Chromium with some long URL of Spotify, but the Chromium window stays empty, nothing is shown. RE: Spotify for Kodi - Mr486 - 2016-12-24 I'm one step behind and have not managed to install the chromium browser yet Skickat från min SGP611 via Tapatalk RE: Spotify for Kodi - sakos - 2016-12-25 (2016-12-23, 15:45)marcelveldt Wrote:Great! Thank you.(2016-12-23, 15:41)sakos Wrote: What about the frequency? How often shall this procedure to be done? RE: Spotify for Kodi - klaymen - 2016-12-26 Hi, I just found this thread and wonder if the plugin might be a solution for my problem. I did not try it out yet and hope, somebody of you can tell me if this is the one to look into further, or maybe another plugin could do the job, or none at all. I hope it is OK to ask this before actually investing too much time, just to finally figure it's the wrong solution ... I'm currently running Kodi on a Raspberry Pi3, using the OSMC distribution (I think it's near enough to OpenElec, not so sure about the fine details though). In addition, I'm running FHEM on the Pi, a Perl based open source home automation software (I'm not sure if it is ok to post foreign links here, you can just google for "fhem wiki" - it is in German though). This allows me to combine different wireless home automation systems (in my case Homematic on 868MHz and FS20 on 433MHz), my Logitech Harmony remote control, and Kodi. One thing I made and like a lot is a wall button (using FS20) that automatically turns on my receiver, switches its audio input to the PI3, starts a Spotify plugin on Kodi, and plays one of my playlists (using my Spotify Premium account). After it's started, the same button can be used to switch to the next track (context sensitive programming). Currently I'm using the Spotimc plugin for this purpose - the only one usable enough at the time when I set this up. It actually works - the only problem is that Spotimc does not give you direct access to certain functions, like playing a certain playlist. I think this has to do with the old library instead of the api. What would be required is a direct, xml or json based access to these functions. My current implementation code for above mention button using Spotimc under FHEM is Code: Button1r.on { As you can see, this is basically constructed upon navigating around in the Spotify user interface and knowing where things are (playlist tab, relative location of the playlist in question, etc). No Spotify funtion is used directly, everything is done using Kodi instructions. Also,time delays need to be added to make sure nothing is lost - eg, the 13 seconds to make sure Spotimc actually is listening to navigation commands. Such a construction is of course suboptimal - sometimes navigation commands are lost (rarely though, as it is over LAN and not just infrared), sometimes the playlist arrangement changes and the wrong one is selected, etc. So, I look for a replacement that allows me to send direct commands. To my understanding, the main issue is Spotify itself not wanting the community to use such interfaces, in order to hinder the development of open source developments, but I'm not sure if this really is the case. Anyway, would this - or some other - plugin be a better solution for my problem? Thanks in advance, Andy RE: Spotify for Kodi - boss92500 - 2016-12-27 Hi, I installed spotify 1.0.25 on PI3 and gave spotify premium login. Impossible to launch the application. Some help welcome ! RE: Spotify for Kodi - kelemenlajos - 2016-12-27 (2016-11-23, 01:25)mgkday Wrote:(2016-11-21, 11:13)SKUK Wrote: Thanks for this great addon. Did you manage to start this spotify? I went trough all of your steps, and had the same problems RE: Spotify for Kodi - Bierlag - 2016-12-27 Hi guys, sorry to ask this but it's driving me crazy, Is there a way to search in Spotify from the Web interface? I'm using the search option, but nothing happens. I've tried several web browsers but no joy. RE: Spotify for Kodi - klaymen - 2016-12-27 Hi guys, I now gave it a try, but I'm having problems installing it on my Raspberry using Kodi (osmc with confluence skin). I did additionally install the plugin under Windows, where it works, and copied over the xyz.cache file to ~/.kodi/userdata/addon_data/plugin.audio.spotify/xyz.cache. But I think my problem starts earlier... One thing I noticed there - not sure if it is relevant - is that the corresponding directory in Windows has an additional libspotify folder, which is not there in the raspberry version. But I suspect this directory is not created until a successful login occurs (not sure though, I thought I mention it). The settings.xml is identical on Windows and the Raspberry, and of course the cache file too. When I start the plugin, it just says "Working" for some time, and then returns a "Login Error" (but of course the password is correct, I see it in settings.xml, and it works in the windows version). I enabled debug logging, and that's the output I get: Code: 21:29:00 366.946259 T:1956275120 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.audio.spotify/) It seems the "from spotify import MainLoop, ConnectionState, ErrorType, Bitrate, link" line in playbackservice.py does not work... I actually tried a "sudo find / -name spotify.py -print", and it does not return anything. This python file does not seem to be present on my system.... I do have a /usr/local/lib/python2.7/dist-packages/spotify/ directory though, "pip install pyspotify" does not fix the problem (it says it's already present). Here an interactive output: Code: >>> from spotify import ConnectionState, ErrorType, Bitrate, link Actually even on my Mac (without anything else installed), when I do a "pip install pyspotify", it is installed, but a manual import check like above gives exactly the same result. Also, spotify.__dict__ does not contain MainLoop... I think I'm missing something trivial - maybe a dependency? Thanks, Andy RE: Spotify for Kodi - mgkday - 2016-12-28 Andy, let us know of the evolution of your issue, I am interested as I've been blocked on the (almost) same stage for days now (look at previous pages) and you went even further as you got the "working" at least ! RE: Spotify for Kodi - User 224999 - 2016-12-28 I have placed version 1.0.26 on my beta repo which should fix some of the login issues that were reported. Please remember the following notes regarding the addon: 1) There must be a webbrowser installed for the authentication prompt. (or use the workaround from the first post) 2) No support for Android armv8 or Android x86 platform 3) No support for MacOS Sierra It's still waiting for Spotify to deliver a substitute for the old libspotify so we can have proper playback support on modern platforms. RE: Spotify for Kodi - User 224999 - 2016-12-28 (2016-12-27, 16:07)Bierlag Wrote: Hi guys, sorry to ask this but it's driving me crazy, No, as far as I'm aware not as the search command in the plugin opens the keyboard dialog in Kodi. RE: Spotify for Kodi - klaymen - 2016-12-28 Addendum: I also tried installing Kodi and the Spotfy plugin under MacOS (version 10.11.6, El Capitan). Here the start of the plugin crashes Kodi, immediately after entering username and password, the plugin.audio.spotify directory is not created at all. If I create the directory manually (~/Library/Application Support/Kodi/userdata/addon_data/plugin.audio.spotify) and copy over the files from Windows, it still crashes, but does not ask username and password (so it does find the settings.xml at least). Can't be a privilege issue, all files are owned by me, not root or so. In the debug log, the last I see is Code: 11:52:18.275 T:123145312116736 DEBUG: CPythonInvoker(2, /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify/spotifyservice.py): entering source directory /Users/xxx/Library/Application Support/Kodi/addons/plugin.audio.spotify I also got a crash report, but not anymore (it seems these reports are not displayed anymore after 3 or so repetitions), so I can't paste it here. It would also be quite long. I'm not needing Kodi on Mac - I just thought it might help me solving the Python issue above, but thought I mention it here anyway. RE: Spotify for Kodi - klaymen - 2016-12-28 (2016-12-28, 12:53)marcelveldt Wrote: I have placed version 1.0.26 on my beta repo which should fix some of the login issues that were reported. Hmm I'm not yet too familiar with the Kodi interface I guess, but I only see version 1.0.25? I did check the emby beta (1.0.5) as well as your private one (1.0.1) - not sure which one you mean with "my beta repo" :-) But both still seem to have 1.0.25, do I need to initiate some kind of cache reload? I even tried removing the 1.0.25 and re-installing, still I see no 1.0.26... Well I'll check again later, maybe it needs some time to update mirrors or so. |