cody-music
Advanced tools
Comparing version 2.8.5 to 2.8.6
@@ -129,2 +129,12 @@ "use strict"; | ||
launchResult = await this.startWindowsPlayer("%APPDATA%/Spotify/Spotify.exe"); | ||
if (launchResult && launchResult.error) { | ||
// try it with START | ||
launchResult = await this.startWindowsPlayer("START SPOTIFY"); | ||
if (launchResult && launchResult.error) { | ||
launchResult = await this.startWindowsPlayer("spotify"); | ||
if (launchResult && launchResult.error) { | ||
launchResult = await this.startWindowsPlayer("spotify.exe"); | ||
} | ||
} | ||
} | ||
} | ||
@@ -131,0 +141,0 @@ return launchResult; |
@@ -97,2 +97,4 @@ "use strict"; | ||
expect(songName).to.not.equal(""); | ||
const runningTrack = await CodyMusic.getRunningTrack(); | ||
console.log("running track from the desktop: ", runningTrack); | ||
result = await CodyMusic.getState(CodyMusic.PlayerName.SpotifyWeb); | ||
@@ -99,0 +101,0 @@ songName = result.name; |
@@ -148,2 +148,16 @@ import { MusicUtil } from "./util"; | ||
); | ||
if (launchResult && launchResult.error) { | ||
// try it with START | ||
launchResult = await this.startWindowsPlayer( | ||
"START SPOTIFY" | ||
); | ||
if (launchResult && launchResult.error) { | ||
launchResult = await this.startWindowsPlayer("spotify"); | ||
if (launchResult && launchResult.error) { | ||
launchResult = await this.startWindowsPlayer( | ||
"spotify.exe" | ||
); | ||
} | ||
} | ||
} | ||
} | ||
@@ -150,0 +164,0 @@ return launchResult; |
{ | ||
"name": "cody-music", | ||
"version": "2.8.5", | ||
"version": "2.8.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", |
@@ -6,2 +6,3 @@ const expect = require("chai").expect; | ||
import { TestUtil } from "../util"; | ||
import { Track } from "../../lib/models"; | ||
@@ -101,2 +102,5 @@ const testUtil = new TestUtil(); | ||
const runningTrack: Track = await CodyMusic.getRunningTrack(); | ||
console.log("running track from the desktop: ", runningTrack); | ||
result = await CodyMusic.getState( | ||
@@ -103,0 +107,0 @@ CodyMusic.PlayerName.SpotifyWeb |
554777
13467