cody-music
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -139,2 +139,13 @@ "use strict"; | ||
} | ||
else if (track && !track["playerType"]) { | ||
if (player === models_1.PlayerName.SpotifyWeb) { | ||
track["playerType"] = models_1.PlayerType.WebSpotify; | ||
} | ||
else if (player === models_1.PlayerName.SpotifyDesktop) { | ||
track["playerType"] = models_1.PlayerType.MacSpotifyDesktop; | ||
} | ||
else { | ||
track["playerType"] = models_1.PlayerType.MacItunesDesktop; | ||
} | ||
} | ||
return track; | ||
@@ -141,0 +152,0 @@ } |
@@ -47,3 +47,3 @@ "use strict"; | ||
}); | ||
xit("Launch and test itunes track state", done => { | ||
it("Launch and test itunes track state", done => { | ||
CodyMusic.launchPlayer(CodyMusic.PlayerName.ItunesDesktop, {}).then(result => { | ||
@@ -50,0 +50,0 @@ CodyMusic.getRunningTrack().then((track) => { |
@@ -153,2 +153,10 @@ "use strict"; | ||
track = new Track(); | ||
} else if (track && !track["playerType"]) { | ||
if (player === PlayerName.SpotifyWeb) { | ||
track["playerType"] = PlayerType.WebSpotify; | ||
} else if (player === PlayerName.SpotifyDesktop) { | ||
track["playerType"] = PlayerType.MacSpotifyDesktop; | ||
} else { | ||
track["playerType"] = PlayerType.MacItunesDesktop; | ||
} | ||
} | ||
@@ -155,0 +163,0 @@ |
{ | ||
"name": "cody-music", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "mac osx spotify and itunes music player controller, spotify audio features, itunes and spotify genre, and playlist control", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -43,3 +43,3 @@ import { MusicUtil } from "../../lib/util"; | ||
xit("Launch and test itunes track state", done => { | ||
it("Launch and test itunes track state", done => { | ||
CodyMusic.launchPlayer(CodyMusic.PlayerName.ItunesDesktop, {}).then( | ||
@@ -46,0 +46,0 @@ result => { |
282507
6841