46 Commits

Author SHA1 Message Date
4f0d5ad7f4 Bump version to 0.2.2 0.2.2 2023-01-10 23:48:21 -05:00
2b81b28bff Fix bug with duplicate Jellyfin scrobbles 2023-01-10 23:47:26 -05:00
d0c88ce271 Bump version to 0.2.1 0.2.1 2023-01-10 16:14:33 -05:00
f8c9df3b9a Fix artist aggregation so it works 2023-01-10 16:13:52 -05:00
8b61dab1bc Fix aggregator and blacken things up 2023-01-10 15:21:12 -05:00
3655cd7934 Bump version to 0.2.0 0.2.0 2023-01-10 14:41:56 -05:00
602d1e0ddb Add better frontend, the first of many! 2023-01-10 14:40:59 -05:00
457828e04d Fix silly bug in classmethods for Scrobbles 2023-01-10 14:40:09 -05:00
49889ae297 Bump version to 0.1.9 0.1.9 2023-01-09 17:49:46 -05:00
4d573bc934 Fix bug where video scrobbles never start 2023-01-09 17:49:11 -05:00
bdd0f19161 Add start of a rating model for tracks 2023-01-09 11:20:37 -05:00
cc0c573c51 Bump version to 0.1.8 0.1.8 2023-01-09 00:31:46 -05:00
28bd9ad504 Start filling out content urls 2023-01-09 00:29:55 -05:00
657b194dc7 Fix small typo in debug logs 2023-01-08 23:10:24 -05:00
27ffd35826 Fix bug with Jellyfin mbrainz IDs being poor
Turns out Jellyfin uses a really esoteric form of Musicbrainz ID for
tracks. Instead of using the recording ID, it uses the specific hash for
a given version of a recording. A noble effrot to be specific, but we'd
much rather use Mopidy's recording ID when it's available.

Thus, we'll use Jellyfin's ID if that's all we have, but if we scrobble
the same track from Mopidy, overwrite the value.
2023-01-08 23:08:36 -05:00
da64cb2b6f Use logical filters for scrobble admin
No need to filter by video, but in progress and source are pretty handy.
2023-01-08 23:00:34 -05:00
09e96a55d4 First try at fixing bad MD data from Jellyfin 2023-01-08 19:44:41 -05:00
e4027402ed Add scrobble count property to tracks 2023-01-08 19:44:07 -05:00
4dc1599633 Add uuid fields for slugs at some point 2023-01-08 16:51:50 -05:00
71a8a19491 Add context processors for base template 2023-01-08 16:49:13 -05:00
1ec4333856 Add fallback duration tracking for Mopidy
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.
2023-01-08 14:09:18 -05:00
f98fe4635c Clean up display of last scrobbles 2023-01-08 14:08:57 -05:00
c3b48099bf Bump version to 0.1.7 0.1.7 2023-01-08 02:52:12 -05:00
1476fe37ca Auth is jamming up the works right now 2023-01-08 02:51:35 -05:00
842378e812 Need to load JSON data 2023-01-08 02:50:54 -05:00
07ad6005c8 Add rudimentary support for mopidy-webhooks 2023-01-08 00:26:24 -05:00
638be0b56a Refactor scrobbling code and add Music
If you send Track data from the Jellyfin Webhook plugin, we'll do the
right thing with it. Lots more to do to clean this up, but it also
involved moduralizing the code for scrobbling so it's a little simpler
to understand what's going on.
2023-01-07 19:34:11 -05:00
9c0d85c5d2 Bump version to 0.1.6 0.1.6 2023-01-06 16:26:22 -05:00
1b58ea4538 Fix max-height bug on dl for in progress scrobble 2023-01-06 16:24:00 -05:00
b318bc0da9 Bump version to 0.1.5 0.1.5 2023-01-06 16:19:06 -05:00
fe39118b55 Add a progress bar to in progress scrobble 2023-01-06 16:17:42 -05:00
de07a3c74a Bump version to 0.1.4 0.1.4 2023-01-06 15:09:00 -05:00
a960eee8f6 [#1] Limit now playing to the last 10 minutes 2023-01-06 14:26:14 -05:00
15ff2e4efd [#1] Add now playing section to homepage 2023-01-06 11:44:31 -05:00
58a8ab1316 Bump version to 0.1.3 2023-01-05 17:18:06 -05:00
c84300bd67 Fix bug in trusted origin config 2023-01-05 17:14:21 -05:00
373657f1bc Bump minor version to 0.1.2 2023-01-05 15:46:59 -05:00
2badc6de54 Refactor jellyfin scobbler view 2023-01-05 15:45:49 -05:00
f274aa7d0e Update some docs 2023-01-05 14:45:02 -05:00
819723b927 Big reorg to support pacakging 2023-01-05 14:39:47 -05:00
41a74f46c8 Add scrobble log option and CLI tool 2023-01-05 13:39:56 -05:00
68c1b3c6f0 Forgot to add meta migration for videos 2023-01-05 11:50:07 -05:00
cd51d1b8c8 Allow admin filter by video type 2023-01-05 11:10:29 -05:00
410fe36d9a Split scrobble endpoints up 2023-01-05 11:10:10 -05:00
fe47d916e9 Add templates and clean up views for scrobbling
Biggest thing here is adding the ability to scrobble until the video is
95% done and then not scrobble the same video file again for 15 minutes.

This seems hacky, but in practice works pretty well, so long as you
don't monkey around with the 95% completion thing.  Unlike music, videos
are generally watched all the way through.
2023-01-05 01:35:12 -05:00
ece9a68165 Initial commit 2023-01-04 17:55:18 -05:00