Skip to content

Commit e4a12e7

Browse files
committed
remove modification of spotify uri
1 parent a3508b0 commit e4a12e7

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

api.js

-6
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ module.exports = {
6767
if (config.get('allowControl')) {
6868
try {
6969
let track = req.params.track;
70-
if (track.indexOf('spotify:track:') == -1) {
71-
track = 'spotify:track:' + track;
72-
}
7370
spotify.playTrack(track);
7471
res.send({status: 'playing'});
7572
}
@@ -87,9 +84,6 @@ module.exports = {
8784
try {
8885
let track = req.params.track;
8986
let context = req.params.context;
90-
if (track.indexOf('spotify:track:') == -1) {
91-
track = 'spotify:track:' + track;
92-
}
9387
spotify.playTrackInContext(track, context);
9488
res.send({status: 'playing'});
9589
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "spotify-controller",
33
"productName": "Spotify Controller",
4-
"version": "0.1.4",
4+
"version": "0.1.5",
55
"description": "Control Spotify on MacOS over the network",
66
"license": "MIT",
77
"repository": "josephdadams/spotify-controller",

0 commit comments

Comments
 (0)