Added Spotify tracking. Fixed filters when none given.

This commit is contained in:
Tom
2024-12-04 19:01:40 +00:00
parent ad624172a6
commit 79b27b8e32
7 changed files with 175 additions and 5 deletions

View File

@@ -22,6 +22,11 @@ const configuration = {
*/
},
},
spotify: {
client_id: null,
client_secret: null,
redirect_uri: null
},
web: {
host: null,
port: null
@@ -43,6 +48,9 @@ if (config.has("scrobble.minimum.duration"))
if (config.has("scrobble.minimum.percent"))
configuration.scrobble.minimum.percent = config.get("scrobble.minimum.percent");
if (config.has("spotify"))
configuration.spotify = config.get("spotify");
if (config.has("web.host"))
configuration.web.host = config.get("web.host");
if (config.has("web.port"))