feat: The ListenBrainz integration has been extended with a configurable (5 seconds by default) delay in song reporting

This commit is contained in:
2023-08-28 14:19:12 +02:00
parent cbb22ba688
commit 68f76a9e63
9 changed files with 52 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ export const settingsStore = new Store({
enabled: false,
api: "https://api.listenbrainz.org",
token: "",
delay: 5000,
},
flags: {
disableHardwareMediaKeys: false,
@@ -53,6 +54,13 @@ export const settingsStore = new Store({
migrationStore.get("disableHardwareMediaKeys") ?? false
);
},
"5.7.0": (migrationStore) => {
console.log("running migrations for 5.7.0");
migrationStore.set(
settings.ListenBrainz.delay,
migrationStore.get(settings.ListenBrainz.delay) ?? 5000
);
},
},
});