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.
21 lines
405 B
Python
21 lines
405 B
Python
from django.contrib import admin
|
|
|
|
from scrobbles.models import Scrobble
|
|
|
|
|
|
class ScrobbleAdmin(admin.ModelAdmin):
|
|
date_hierarchy = "timestamp"
|
|
list_display = (
|
|
"timestamp",
|
|
"video",
|
|
"track",
|
|
"source",
|
|
"playback_position",
|
|
"in_progress",
|
|
)
|
|
list_filter = ("video",)
|
|
ordering = ("-timestamp",)
|
|
|
|
|
|
admin.site.register(Scrobble, ScrobbleAdmin)
|