-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
2,709 additions
and
2,738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# New Spotify Plugin | ||
|
||
|
||
This repo serves as WIP for the new spotify plugin. It is currently in development and not ready for use. | ||
|
||
## Installation | ||
|
||
To prepare the environment for go and go librespot | ||
To prepare the environment for go and go librespot | ||
|
||
```bash | ||
cd librespot-go | ||
./prepare-env.sh | ||
./clone-and-prepare.sh | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
var superagent = require('superagent'); | ||
let superagent = require('superagent'); | ||
|
||
var apiEndpoint = 'http://127.0.0.1:9879'; | ||
let apiEndpoint = 'http://127.0.0.1:9879'; | ||
|
||
superagent | ||
.post(apiEndpoint + '/player/volume') | ||
.accept('application/json') | ||
.send({ volume: 50, volume_steps: 100 }) | ||
.then((results) => { | ||
console.log(results.body); | ||
}) | ||
.catch((err) => { | ||
console.log(err); | ||
}); | ||
|
||
superagent.post(apiEndpoint + '/player/volume') | ||
.accept('application/json') | ||
.send({ 'volume': 50, 'volume_steps': 100 }) | ||
.then((results) => { | ||
console.log(results.body); | ||
}).catch((err) => { | ||
console.log(err); | ||
}) | ||
superagent | ||
.get(apiEndpoint + '/status') | ||
.accept('application/json') | ||
.then((results) => { | ||
console.log(results.body); | ||
}); | ||
|
||
|
||
superagent.get(apiEndpoint + '/status') | ||
.accept('application/json') | ||
.then((results) => { | ||
console.log(results.body); | ||
}) | ||
|
||
superagent.get(apiEndpoint + '/player/volume') | ||
.accept('application/json') | ||
.then((results) => { | ||
console.log(results.body); | ||
}) | ||
superagent | ||
.get(apiEndpoint + '/player/volume') | ||
.accept('application/json') | ||
.then((results) => { | ||
console.log(results.body); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"SPOTIFY_USERNAME":"Nom Usuari Spotify", | ||
"SPOTIFY_PASSWORD":"Contrasenya Spotify", | ||
"HIGH_BITRATE":"Alta qualitat", | ||
"SEARCH_RESULTS":"Numero de resultats", | ||
"PLUGINS":"Last.fm", | ||
"LAST_FM_USERNAME":"Usuari Last.fm ", | ||
"LAST_FM_PASSWORD":"ContrasenyaLast.fm", | ||
"SEARCH_SONGS_SECTION":"Cançons Spotify", | ||
"SEARCH_ALBUMS_SECTION":"Albums Spotity", | ||
"SEARCH_ARTISTS_SECTION":"Artistes Spotify", | ||
"SPOTIFY_CONFIGURATION":"Configuració Spotify", | ||
"SPOTIFY_ACCOUNT":"Compte Spotify", | ||
"SAVE":"Guarda" | ||
|
||
"SPOTIFY_USERNAME": "Nom Usuari Spotify", | ||
"SPOTIFY_PASSWORD": "Contrasenya Spotify", | ||
"HIGH_BITRATE": "Alta qualitat", | ||
"SEARCH_RESULTS": "Numero de resultats", | ||
"PLUGINS": "Last.fm", | ||
"LAST_FM_USERNAME": "Usuari Last.fm ", | ||
"LAST_FM_PASSWORD": "ContrasenyaLast.fm", | ||
"SEARCH_SONGS_SECTION": "Cançons Spotify", | ||
"SEARCH_ALBUMS_SECTION": "Albums Spotity", | ||
"SEARCH_ARTISTS_SECTION": "Artistes Spotify", | ||
"SPOTIFY_CONFIGURATION": "Configuració Spotify", | ||
"SPOTIFY_ACCOUNT": "Compte Spotify", | ||
"SAVE": "Guarda" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"SPOTIFY_USERNAME":"Spotify Benutzername", | ||
"SPOTIFY_PASSWORD":"Spotify Passwort", | ||
"HIGH_BITRATE":"Hohe Qualität", | ||
"SEARCH_RESULTS":"Anzahl der Suchergebnisse", | ||
"PLUGINS":"Last.fm", | ||
"LAST_FM_USERNAME":"Last.fm Benutzername", | ||
"LAST_FM_PASSWORD":"Last.fm Passwort", | ||
"SEARCH_SONGS_SECTION":"Spotify Lieder", | ||
"SEARCH_ALBUMS_SECTION":"Spotity Alben", | ||
"SEARCH_ARTISTS_SECTION":"Spotify Künstler", | ||
"SPOTIFY_CONFIGURATION":"Spotify Einstellungen", | ||
"SPOTIFY_ACCOUNT":"Spotify Konto", | ||
"SAVE":"Speichern" | ||
|
||
"SPOTIFY_USERNAME": "Spotify Benutzername", | ||
"SPOTIFY_PASSWORD": "Spotify Passwort", | ||
"HIGH_BITRATE": "Hohe Qualität", | ||
"SEARCH_RESULTS": "Anzahl der Suchergebnisse", | ||
"PLUGINS": "Last.fm", | ||
"LAST_FM_USERNAME": "Last.fm Benutzername", | ||
"LAST_FM_PASSWORD": "Last.fm Passwort", | ||
"SEARCH_SONGS_SECTION": "Spotify Lieder", | ||
"SEARCH_ALBUMS_SECTION": "Spotity Alben", | ||
"SEARCH_ARTISTS_SECTION": "Spotify Künstler", | ||
"SPOTIFY_CONFIGURATION": "Spotify Einstellungen", | ||
"SPOTIFY_ACCOUNT": "Spotify Konto", | ||
"SAVE": "Speichern" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.