Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current song error: No song #103

Open
leoarruda6 opened this issue Jul 20, 2018 · 16 comments
Open

Current song error: No song #103

leoarruda6 opened this issue Jul 20, 2018 · 16 comments

Comments

@leoarruda6
Copy link

image

@Piratkopia13
Copy link

Having the exact same issue, doesn't matter which song I play.

@ghost
Copy link

ghost commented Jul 21, 2018

The same thing happens to me and I think it's been since the last update of windows 10

@flashjames
Copy link

Tried on ubuntu 16.04. Same error

@leoarruda6
Copy link
Author

leoarruda6 commented Jul 23, 2018

Don't know if it helps, but trying to find out here, got this.
The token being used has a 'faketoken' at the end.
Any idea?

image

@fjpalacios
Copy link

Same thing here with macOS 10.13.5.

@emilioastarita
Copy link
Owner

Hey! This could be a change in spotify API. Let me check this on weekend and I see what can I do.

@discoli-zz
Copy link

@emilioastarita must be because Musixmatch and spotify-lyrics also do not seem to work, thought I messed something up haha, thank you :)

@guiburi
Copy link

guiburi commented Jul 30, 2018

same issue here. any update @emilioastarita ?

@j0hn
Copy link

j0hn commented Aug 1, 2018

same problem... Looks like spotify changed something because https://open.spotify.com/token is returing a token that ends with "faketoken".

@Vahidrostami
Copy link

same problem here with both Musixmatch and Lyricifier in Ubuntu 16.04

@rgalhama
Copy link

Same problem here! (Lyricifier+Spotify, on Linux Mint). Any news?

@nnoc
Copy link

nnoc commented Aug 16, 2018

Same problem here!
Is it something related to spotify?

@RobFog
Copy link

RobFog commented Aug 24, 2018

Lyricfier is sorely missed!

@morgancmartin
Copy link

Just chiming in to say the same! @emilioastarita if you could use some help just ping me and I'll see what I can do. I'm not super familiar with typescript, but I may be of some use. Just LMK!

@DaanGebraad
Copy link

Same issue here as well, any updates on a possible fix? Got some experience with typescript so hit me up if you need some help.

@patrolez
Copy link

patrolez commented Sep 22, 2018

Every Open-Source project which deals with new Spotify API struggles with this problem after recent API upgrade.

Solution 1 - upgrade to new WebApi

The official way to do it is to follow guide how it is mentioned under https://developer.spotify.com/documentation/general/guides/authorization-guide/

  • It requires an app registration which would be assigned to some user account
    • it could be maintainer/contributor account OR app author account
  • Commentary for Open-Source App and Authorization Flows:
    • Implicit grant flow at least does not makes problems with secret key and server-side hosting, but requires token refreshing manually by user each time it expires (so logging in to Spotify)
    • Rest of methods require dealing with secret key, so server-side hosting (so monies $$)
    • Another possibility is that each user can be asked to become yourself Spotify Developer and generate its own application to obtain its own secret key

Solution 2 - offline mechanism usage in OS environments to obtain currently played song data

Linux

Under Linux it is possible to get currently played Song via MPRIS based on dbus - e.g. https://stackoverflow.com/a/33923095.
Shared code above is made for Python2. To make it work under Python3 just add brackets in "print" call invocation.

Windows 10

There seems to exist an API called SystemMediaTransportControls or SMTC in C# - is there possibility to integrate it with NodeJs? I do not know - https://docs.microsoft.com/en-us/uwp/api/windows.media.systemmediatransportcontrolsdisplayupdater

Older Windows

Not sure if any method exist. Maybe reading data from Spotify App title.

Summary

Solution 3

It somehow misuses Spotify Developer example application, so I will not get into it. I will only say that it comes with specific client ID. Here is URL https://developer.spotify.com/console/get-users-currently-playing-track/. I will not comment on that method anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests