kodi-community-addons / plugin.audio.spotify

Unofficial spotify plugin for Kodi
GNU General Public License v3.0
295 stars 103 forks source link

Spotify connect #73

Open SeyedGH opened 6 years ago

SeyedGH commented 6 years ago

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?

GAZ082 commented 6 years ago
  1. Updated to 1.1.55
  2. Rebooted.
  3. Still nothing.
  4. In settings unchecked the Enable this device as Spotify target. Rebooted, enabled again, rebooted.
  5. Nothing. My Kodi is not shown in my phone as a device but from KODI do see my phone or browser and when i select them the reproduction in either device stops but goes nowhere.

Is this perhaps a port issue? What port Spotify uses?

marcelveldt commented 6 years ago

You need to enter your credentials in the addon settings

GAZ082 commented 6 years ago

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.

marcelveldt commented 6 years ago

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.

GAZ082 commented 6 years ago

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?

saba1970 commented 6 years ago

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".

GAZ082 commented 6 years ago

@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.

saba1970 commented 6 years ago

@GAZ082 No, I can't even start Spotify addon.

saba1970 commented 6 years ago

@GAZ082: where can I find the settings.xml on a Pi?

marcelveldt commented 6 years ago

@saba1970 can you send me a Kodi debug log after this strange thing with the credentials happened ?

marcelveldt commented 6 years ago

@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.

GAZ082 commented 6 years ago

@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!

saba1970 commented 6 years ago

@marcelveldt: here the kodi.log kodi (2).log

I have also tested with a fresh installation of LibreElec. Same issue.

marcelveldt commented 6 years ago

@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.

saba1970 commented 6 years ago

@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

JayOne73 commented 6 years ago

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

marcelveldt commented 6 years ago

@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.

GAZ082 commented 6 years ago

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.

saba1970 commented 6 years ago

@marcelveldt. It is really 1.1.55. I will send you this evening a printscreen of the version.

saba1970 commented 6 years ago

@marcelveldt: here an update and see also the attachments. imag0066 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?

saba1970 commented 6 years ago

@marcelveldt: I have restored a backup with repo 1.1.44. Spotify works than fine on the Pi's.

GAZ082 commented 6 years ago

@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

felipebrauna commented 6 years ago

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.

marcelveldt commented 6 years ago

@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.

marcelveldt commented 6 years ago

@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)

GAZ082 commented 6 years ago

@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!

GAZ082 commented 6 years ago

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.

gpchampion commented 6 years ago

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.

saba1970 commented 6 years ago

@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.

JayOne73 commented 6 years ago

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.

marcelveldt commented 6 years ago

I will take another look this weekend. For now you can indeed use version 1.1.44 if you don't need connect

Matheos96 commented 6 years ago

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.

gpchampion commented 6 years ago

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!

gpchampion commented 6 years ago

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.

JayOne73 commented 6 years ago

@gpchampion you can get the different versions via https://github.com/marcelveldt/repository.marcelveldt/tree/master/plugin.audio.spotify

gpchampion commented 6 years ago

Thanks for that, I looked, didn't find in there, failed!!!

Matheos96 commented 6 years ago

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

austin6598 commented 6 years ago

Windows 10 also having this issue

maxwowpow commented 6 years ago

@Matheos96

Matheos96 commented 6 years ago

@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

yuusou commented 6 years ago

@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.

lutel commented 6 years ago

@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.

466 commented 6 years ago

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)

triceo commented 6 years ago

On 1.1.58, with latest LibreELEC:

pstroinski commented 5 years ago

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

prateek33 commented 5 years ago

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.

aulbricht commented 4 years ago

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).

Philippe-Brodeur-JCI commented 3 years ago

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