cody-music
Advanced tools
Comparing version 2.9.2 to 2.9.3
@@ -276,3 +276,3 @@ "use strict"; | ||
async function getSpotifyPlayerContext() { | ||
return musicPlayerCtr.getSpotifyPlayerContext(); | ||
return musicPlayerCtr.getSpotifyPlayerContext(true); | ||
} | ||
@@ -279,0 +279,0 @@ exports.getSpotifyPlayerContext = getSpotifyPlayerContext; |
@@ -51,3 +51,3 @@ import { PlayerDevice, Track, PlayerContext, Artist, PlayerName, CodyResponse } from "./models"; | ||
updateRepeatMode(setToOn: boolean): Promise<CodyResponse>; | ||
getSpotifyPlayerContext(): Promise<PlayerContext>; | ||
getSpotifyPlayerContext(clearCache: boolean): Promise<PlayerContext>; | ||
launchAndPlaySpotifyTrack(trackId?: string, playlistId?: string, playerName?: PlayerName): Promise<void>; | ||
@@ -54,0 +54,0 @@ playSpotifyTrackFromPlaylist(trackId: string, spotifyUserId: string, playlistId?: string): Promise<void>; |
@@ -530,3 +530,6 @@ "use strict"; | ||
} | ||
async getSpotifyPlayerContext() { | ||
async getSpotifyPlayerContext(clearCache) { | ||
if (clearCache) { | ||
cacheMgr.set("player-context", null); | ||
} | ||
let playerContext = cacheMgr.get("player-context"); | ||
@@ -533,0 +536,0 @@ if (playerContext) { |
@@ -339,3 +339,3 @@ "use strict"; | ||
export async function getSpotifyPlayerContext(): Promise<PlayerContext> { | ||
return musicPlayerCtr.getSpotifyPlayerContext(); | ||
return musicPlayerCtr.getSpotifyPlayerContext(true); | ||
} | ||
@@ -342,0 +342,0 @@ |
@@ -659,3 +659,6 @@ import { MusicUtil } from "./util"; | ||
async getSpotifyPlayerContext(): Promise<PlayerContext> { | ||
async getSpotifyPlayerContext(clearCache: boolean): Promise<PlayerContext> { | ||
if (clearCache) { | ||
cacheMgr.set("player-context", null); | ||
} | ||
let playerContext: PlayerContext = cacheMgr.get("player-context"); | ||
@@ -662,0 +665,0 @@ if (playerContext) { |
{ | ||
"name": "cody-music", | ||
"version": "2.9.2", | ||
"version": "2.9.3", | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
558071
13548