Open SeyedGH opened 6 years ago
Is this perhaps a port issue? What port Spotify uses?
You need to enter your credentials in the addon settings
Yes, yet there is no Kodi in my Spotify Devices list. Let's see if others have this issue with OpenElec. It's late here, i'll follow up during the week. Thanks.
Hmmm, I have tested with MacOS, Windows and LibreElec x86. Only thing I did not test is raspberry pi. Maybe the issue is only with pi.
I'm using it with a Cubox-i4 which is ArmV9. I'll get you the logs if i'm not too tired when i get home today, pehaps the issue is with ARM processors, either way we should get something in the logs, right?
Hello Marcel, I have tested 1.1.55 on a Pi with LibreElec. Now I have the following strange issue. When I enter the credentials in the addon settings, they immediately disappear. I have disabled the option "Enable this device as Spotify target".
@saba1970 but can you play music? I actually never entered using the KODI interface, i put them manualy in the settings.xml file of the plugin.
@GAZ082 No, I can't even start Spotify addon.
@GAZ082: where can I find the settings.xml on a Pi?
@saba1970 can you send me a Kodi debug log after this strange thing with the credentials happened ?
@GAZ082 something to try instead of enabling Kodi debug log is to force debug logging in the addon itself. For that you need to open the file called utils.py (in resources/lib of the addon). Somewhere on the top lines there should be a DEBUG=False statement which you need to change to True and reboot Kodi. Maybe that will result in some more verbose logging of what is going on.
@saba1970 /.kodi/addons/plugin.audio.spotify/resources (notice the .kodi is a hidden folder).
Then in settings.xml, find this line near the top:
<setting id="username" type="text" label="11001" default="**USER HERE**" visible="eq(2,false)"/>
<setting id="password" type="text" option="hidden" label="11002" default="**PASS HERE**" visible="eq(1,false)"/>
@marcelveldt will do and report back!
@marcelveldt: here the kodi.log kodi (2).log
I have also tested with a fresh installation of LibreElec. Same issue.
@saba1970 sorry, that log is kind of useless as it only contains a small part of the startup sequence which is also spammed by some banned addons. If you could deliver me the (full!) logfile of the fresh installation that would be great, otherwise you'll have to wait a bit untill I have some time to setup a pi with libreelec to test with later this week.
@marcelveldt: Reset LiberElec. Install Spotify addon on the Pi. Reboot Pi. Start Spotify. Set credentials. Reboot Pi. Start Spotify. Spotify shows me menu. I select MyMusic -> MyPlaylist. Spotify search very long, but find nothing. The same when I open a playlist in Spotify or when I search by example U2. I got a menu with artist, playlist, albums and songs. I click on artist. Spotify search very long, no results. kodi (2).log
Same problems as saba1970 above on RPI setup with Kodi 17.4 (and plugin version1.1.55).
From line 1244 in the logfile there are some warnings: kodi.log
@saba1970 the issue you're describing sounds like if you're not running the most recent 1.1.55 version. Before version 1.1.55 there was an issue with the slow menu browsing and such.
OKEY BOY. Here is the new log with the forced debug: http://termbin.com/niti
Again, from my mobile i do NOT see Kodi. However, from Kodi, I do see my mobile as Active while it's playing something, when i select it, the play in my mobile stops.
@marcelveldt. It is really 1.1.55. I will send you this evening a printscreen of the version.
@marcelveldt: here an update and see also the attachments. repository.marcelveldt-1.0.1.zip Fresh installation from LibreElec. Installation of Spotify with attached zip-file. I'm very happy. I had a connection with Spotify and I had sound. So far so good. Then I installed another Pi. Fresh installation LibreElec. New installation of Spotify with attached zipfile. Connection with Spotify, but no sound. I installed the first Pi again. Cnnection with Spotify, but there was no sound. How is that possible?
@marcelveldt: I have restored a backup with repo 1.1.44. Spotify works than fine on the Pi's.
@saba1970 does spotify connect work?
@marcelveldt i installed 1.1.44 and now my mobile detects Kodi but when i select it to play, it stays "trying to connect" for a few seconds then desists. The log has some stuff: http://termbin.com/b2ja
So guys, after i do some tests in my Libreelec Kodi 18 (Leia) Beta on Pi and everything (Spotify connect and local player) Works like a charm since the first attempt, now It seems this issue, at least on the Pi is related to something in the version Krypton 17.4.
@GAZ082 1.1.44 will not work with Connect, it's the whole reason I needed to change stuff. You must use the latest version to have Connect support.
@felipebrauna It is possible that there was a specific issue with Kodi 17.4 . I have seen issues too on my test libreelec setup when using version 17.4. I suggest to use 17.6 (the latest version)
@marcelveldt I'm using Kodi 17.3, will see if can update to 17.6 tonight and test again. Never realized there was a newer Kodi version as i just installed OpenElec for the first time a week ago. Fingers crossed!
Okey, installed LibreElec which comes with Kodi 17.6 and now it detects and "plays" but nothing comes out of the speakers. Here is the log: http://termbin.com/235t
I found LibreElec has a similar plugin called Librespot which works as a Spotify Connect devices with no issues.
V1.1.55 running on OSMC S905x box, still plays tracks fine, but random silence from track to track. Skip to next track, works fine and plays it... trouble is I can't leave it playing as I get silence! If it plays a track its rock solid, no break down, so it must be some intermittent connect issue to spotify from the plugin? Previous 1.1.4x versions didn't exhibit this behavior as far as I remember. Will test also on Libreelec S905X and report back.
@marcelveldt: I have tested 1.1.55 with Kodi 17.6 with LibreElec. I got the same message "Please connect to this device with the Spotify app on your phone to login or enter your credentials in the settings dialog." I use now 1.1.44 because I don't need Spotify connect. So for me the "old" Spotify works fine.
Also returned to 1.1.44 because I don't really need the connect option (already using raspotify for that) and upgrading to Kodi 17.6 seems a no go on a RetroPie setup.
I will take another look this weekend. For now you can indeed use version 1.1.44 if you don't need connect
I am having this issue too. Latest version OSMC and latest spotify plugin. Everytime I launch OSMC/Kodi it pops up telling me to login using phone (which I don't understand how works) or in the settings app which I am already logged into... Everything works tho but annoying to get the message everytime even though I am, as I said, already logged in.
Can someone tell me where I get 1.1.44 from? I've found 1.1.46 and that seems solid on OSMC. Been playing playlists of 70+ tracks all day here. No drop outs as far as I can make out/hear!
BTW, I will restart OSMC later and see if I get the creds prompt on 1.1.46.
RESTARTED and it asked for credentials etc on 1.1.46, so pressed OK a twice, and opened Spotify addon ok.
Installed V1.1.44 over the top, same difference, restarted and it asked for the credentials again, plus I think it fell over at some point, so asked for them again... I'll check the log.
@gpchampion you can get the different versions via https://github.com/marcelveldt/repository.marcelveldt/tree/master/plugin.audio.spotify
Thanks for that, I looked, didn't find in there, failed!!!
Any solutions yet? I still have this "please connect" message even though I am already connected + now with a new update I also get "will open in default browser..." which is literally not possible on RPi since OpenElec, OSMC or LibreElec don't have any browser...
Issue about this here: https://github.com/marcelveldt/plugin.audio.spotify/issues/86
Windows 10 also having this issue
@Matheos96
@maxgrass I tried but it did not remove my credentials when I uninstalled the app, so when I installed it again I did never have to enter my credentials again, I was already logged in. Also the first thing I saw was that box when I launched the app again after new install.
There has to be some cache/save files stored that saves the login info even if I remove the app... Anyone know where?
The app automatically got added to connected apps instantly after me launching it again after reinstall too
@marcelveldt I too, on the RPi 1 B with the latest stable OSMC and addon version 1.1.56, am having issues with Spotify Connect. When I first open the add-on, I get asked to log in with my phone and that works, I am able to see my music on the add-on. After that my phone can no longer see the add-on but the add-on can see my phone. I can even play music on my phone controlled from the add-on but not vice versa. I can however listen to music directly in the add-on (contrary to what you've said about the RPi 1) but not control it from my phone.
EDIT: kodi logs can be found here: http://paste.osmc.tv/oluregofoh
What I did notice was that the add-on asked me to permit the app through the browser, but no browser window was opened on my phone much less on the RPi (no browser on it). It still did login however.
EDIT 2: I did a completely fresh install of Kodi on my Ubuntu box, installed the add-on and had exactly the same result.
@yuusou I have the same problem, Kodi 17.5 on QNAP, Spotify on my phone doesn't recognize Kodi plugin anymore. I could play couple of songs with spotify connect, but after a while the "Kodi@QNAP" device disappeared from list on phone. Whats weird, the Kodi is available briefly to connect when I'm logging off in plugin.
Just fyi, i can confirm spotify 1.1.56 not working properly on RP3
I am on Milhouse builds, Kodi-18-LibreELEC-9
1.1.56: login impossible: "No credentials have been set or the login failed" and back to 1.1.44: local playback works, spotify connect does not (as marcelveldt already stated)
On 1.1.58, with latest LibreELEC:
On 1.1.58 and Kodi 17.6, Ubuntu installation - same problem. "Please connect to this device with the Spotify app on your phone to login or enter your credentials in the settings dialog."
Downgrade to 1.1.44 makes it work again
I just started having this problem after weeks of using this fine. I can't even see kodi on spotify connect on my phone. I am on Kodi Leia and app version 1.1.58. Do we have any workarounds? I verified that the username and password in app's setting is perfectly fine.
Also trying on Kodi Leia 18.5 and getting the error "please connect to this device with the spotify app on your phone..." After restarting Kodi, I was able to connect from my mobile device Spotify app to Kodi as an audio source. So far so good. The problem is Spotify app and Kodi add-on both think it's playing music, but I only have silence. Any ideas as to why? Note: Kodi audio otherwise works fine (e.g. for movies).
I have librelec 9.2.6 on a pi 4. I installed Spotify 1.1.58 by marcelveldt.
I created a 'free not premium' user account on spotify and i can log to it using my windows 10 laptop. But when i try to login to marcelveldt's implementation of Spotify, i get the following error message:
"No credentials have been set or the login failed" "Please enter you credentials in the addon setting"
Now i know i have entered them (very complex username) and it is working in Win10. i've tried enabling the log, even the JSON-RPC requests (by any chance) but can't get any clue, nothing logs...
I am a programmer myself, if you give me a couple of hints maybe i can debug my way out.
Thanxs
When I turn on spotify connect, I get "Please connect to this device with the Spotify app on your phone to login or enter your credentials in the settings dialog." And when i choose on my phone listen from this device i get the same message. Am I doing something wrong?