Unlike Jellyfin, Mopidy's webhook only gives us a start and stopped call to determine when a track should be scrobbled. This means we don't have continous updating of playback ticks. This commit adds a fallback when ticks are not there to use the track duration and time since the scrobble was created. That said, this is not perfect. If you pause the track and start again, the progress will get very out of whack. But thankfully, Mopidy only sends us audio, and it's rare that audio tracks are paused repeatedly and started again before finishing a scrobble. So hopefully this shouldn't happen very often.
Readme
Vrobbler is a pretty simple Django-powered web app for scrobbling video plays from you favorite Jellyfin installation.
At the most basic level, you should be able to run `pip install vrobbler` to the latest version from pypi.org.
Then configure a handful of options in your vrobbler.conf files, which can live in etc or usr/local/etc depending on your configuration.
You can checkout the `scrobbler.conf.example` file in the source for this project, or refer to the following guide:
``` VROBBLER_DEBUG=True VROBBLER_JSON_LOGGING=True VROBBLER_LOG_LEVEL="DEBUG" VROBBLER_MEDIA_ROOT = "media" VROBBLER_TMDB_API_KEY = "<key>" VROBBLER_KEEP_DETAILED_SCROBBLE_LOGS=True VROBBLER_DATABASE_URL="postgres://vrobbler:<pass>@db.service:5432/vrobbler" VROBBLER_REDIS_URL="redis://:<pass>@cache.service:6379/0" ```