FoxxMD / multi-scrobbler

Scrobble plays from multiple sources to multiple clients
https://foxxmd.github.io/multi-scrobbler
MIT License
346 stars 16 forks source link

Enable more agressive scrobble checking behavior #174

Closed FoxxMD closed 2 months ago

FoxxMD commented 2 months ago

Changes to potentially address duplicate scrobble issues when client<-->source feedback loops occur #173

Force Scrobble Refresh

Update scrobble config options to enable refreshing upstream service existing scrobbles in MS on every scrobble so that MS guarantees it always has the latest existing scrobbles to check for dups.

Refresh Stale At

Force client to refresh scrobbled plays from upstream service if last refresh was at least X seconds ago

listenbrainz.json or another scrobble config

[
  {
    "name": "myScrobbler",
    "data": {
      // ...
    },
+    "options": {
+      "refreshStaleAfter": 5
+    }
  }
]
FoxxMD commented 2 months ago

Added additional mechanisms to trigger an upstream scrobble refresh:

Added debug logging insight into refresh triggers -- when a client is about to scrobble it will see if it should refresh, if it needs to refresh it will log the reason why it is logging to DEBUG level.

github-actions[bot] commented 2 months ago

:package: A new release has been made for this pull request.

To play around with this PR, pull an image:

Images are available for x86_64 and ARM64.

Latest commit: e907892c4af78b5a8b5e0982bb88c1b6f17e103f