Git Product home page Git Product logo

Comments (7)

devgianlu avatar devgianlu commented on August 27, 2024 1

You need to request a token with the correct scopes, they are listed here:

"app-remote-control",
"playlist-modify",
"playlist-modify-private",
"playlist-modify-public",
"playlist-read",
"playlist-read-collaborative",
"playlist-read-private",
"streaming",
"ugc-image-upload",
"user-follow-modify",
"user-follow-read",
"user-library-modify",
"user-library-read",
"user-modify",
"user-modify-playback-state",
"user-modify-private",
"user-personalized",
"user-read-birthdate",
"user-read-currently-playing",
"user-read-email",
"user-read-play-history",
"user-read-playback-position",
"user-read-playback-state",
"user-read-private",
"user-read-recently-played",
"user-top-read",

If that feats you, the interactive login mode is also available which will handle the OAuth2 flow for you.

from go-librespot.

devgianlu avatar devgianlu commented on August 27, 2024 1

This feature has not been released yet, to test it you need to compile yourself or wait for the next release.

from go-librespot.

devgianlu avatar devgianlu commented on August 27, 2024 1

It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).

We are using the client ID used by Spotify in its official client, so I am guessing they have locked it down to 127.0.0.1.

Hmm, ok. If they indeed locked it down, it means the browser with the login window needs to run on the same host as librespot?

You can copy the login URL go-librespot gives you into your browser, complete the signin and when it redirects you to 127.0.0.1 you copy that and do curl "..." on the device where go-librespot runs. It is annoying, but you need to do it only once.

from go-librespot.

hecht0r avatar hecht0r commented on August 27, 2024

Interactive unfortunately doesn't work.
FATA[0000] unknown credentials: interactive

config.yml looks like this:

device_name: go-librespot
credentials:
  type: interactive

i am using the latest prebuild executable go-librespot_linux_arm64.tar.gz

from go-librespot.

ChristianRamseier avatar ChristianRamseier commented on August 27, 2024

Looking forward to see the interactive feature released. It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).

from go-librespot.

devgianlu avatar devgianlu commented on August 27, 2024

It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).

We are using the client ID used by Spotify in its official client, so I am guessing they have locked it down to 127.0.0.1.

from go-librespot.

ChristianRamseier avatar ChristianRamseier commented on August 27, 2024

It would be nice if the redirect url will be configurable (i.e. a hostname instead of 127.0.0.1).

We are using the client ID used by Spotify in its official client, so I am guessing they have locked it down to 127.0.0.1.

Hmm, ok. If they indeed locked it down, it means the browser with the login window needs to run on the same host as librespot?

from go-librespot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.