Comments (7)
You need to request a token with the correct scopes, they are listed here:
go-librespot/session/session.go
Lines 101 to 126 in b9bc8c8
If that feats you, the interactive
login mode is also available which will handle the OAuth2 flow for you.
from go-librespot.
This feature has not been released yet, to test it you need to compile yourself or wait for the next release.
from go-librespot.
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.
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.
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.
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.
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)
- Gapless not working HOT 6
- Playback Reporting HOT 1
- Open Source Licence HOT 1
- Interacting breaks connection HOT 1
- skip_to_uri in Album playback? HOT 1
- How to start playing without select the device from Spotify client? HOT 2
- Cross-compiling on ubuntu x86_64 to darwin amd64 fails with error in output.go and clang HOT 4
- Failed authenticating accesspoint HOT 1
- Add to queue from mobile when playing a single track does not work
- Some tracks do not play HOT 8
- feat: go gettable module path HOT 2
- Disable Autoplay HOT 3
- Player drops too early HOT 1
- When resuming partially viewed podcasts they restart HOT 1
- cmd/streamer websocket server
- is it possible to retrieve state from other device
- When using as library, the dealer logs an error every 30 seconds about not having received a pong
- long playlists are not fetched completely when started from certain devices HOT 1
- Reordering of queue has unexpected behaviours
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-librespot.