1
0
Fork 0

Jellyfin: Add patch to save current position for music

This commit is contained in:
Aires 2024-07-15 10:36:44 -04:00
parent ce1291820a
commit 0b4422b1f5
2 changed files with 28 additions and 0 deletions

View file

@ -6,6 +6,10 @@
}: }:
let let
cfg = config.aux.system.services.jellyfin; cfg = config.aux.system.services.jellyfin;
jellyfin-audio-save = pkgs.jellyfin.overrideAttrs (
finalAttrs: prevAttrs: { patches = [ ./jellyfin/jellyfin-audio-save-position.patch ]; }
);
in in
{ {
options = { options = {
@ -83,6 +87,7 @@ in
enable = true; enable = true;
dataDir = lib.mkIf (cfg.home != "") cfg.home; dataDir = lib.mkIf (cfg.home != "") cfg.home;
group = "media"; group = "media";
package = jellyfin-audio-save;
}; };
}; };

View file

@ -0,0 +1,23 @@
From 6d4ddc706c414a9c4370cc9b3a823afc5c4ff2dc Mon Sep 17 00:00:00 2001
From: Blake Smith <blakesmith0@gmail.com>
Date: Mon, 8 Jan 2024 20:41:32 -0600
Subject: [PATCH] Support resume on audio
---
MediaBrowser.Controller/Entities/Audio/Audio.cs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/MediaBrowser.Controller/Entities/Audio/Audio.cs b/MediaBrowser.Controller/Entities/Audio/Audio.cs
index 243d2f04f2f..2b363ae2083 100644
--- a/MediaBrowser.Controller/Entities/Audio/Audio.cs
+++ b/MediaBrowser.Controller/Entities/Audio/Audio.cs
@@ -37,6 +37,9 @@ public Audio()
[JsonIgnore]
public IReadOnlyList<string> AlbumArtists { get; set; }
+ [JsonIgnore]
+ public override bool SupportsPositionTicksResume => true;
+
[JsonIgnore]
public override bool SupportsPlayedStatus => true;