cody-music
Advanced tools
Comparing version 2.9.1 to 2.9.2
@@ -71,2 +71,5 @@ "use strict"; | ||
async getSpotifyDevices(clearCache = false) { | ||
if (clearCache) { | ||
cacheMgr.set("spotify-devices", null); | ||
} | ||
const accessToken = musicStore.spotifyAccessToken; | ||
@@ -77,3 +80,3 @@ if (!accessToken) { | ||
let devices = cacheMgr.get("spotify-devices"); | ||
if (!clearCache && devices && devices.length) { | ||
if (devices && devices.length) { | ||
return devices; | ||
@@ -80,0 +83,0 @@ } |
@@ -87,2 +87,5 @@ import { MusicUtil } from "./util"; | ||
): Promise<PlayerDevice[]> { | ||
if (clearCache) { | ||
cacheMgr.set("spotify-devices", null); | ||
} | ||
const accessToken = musicStore.spotifyAccessToken; | ||
@@ -93,3 +96,3 @@ if (!accessToken) { | ||
let devices = cacheMgr.get("spotify-devices"); | ||
if (!clearCache && devices && devices.length) { | ||
if (devices && devices.length) { | ||
return devices; | ||
@@ -96,0 +99,0 @@ } |
{ | ||
"name": "cody-music", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"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
557843
13542