Nix configurations for my homelab
0

Configure Feed

Select the types of activity you want to include in your feed.

jellyfin: patches to fix subtitle downloading

+60 -6
+14 -6
modules/services/jellyfin.nix
··· 4 4 5 5 nixpkgs.overlays = [ 6 6 (final: prev: { 7 + jellyfin = prev.jellyfin.overrideAttrs ( 8 + finalAttrs: prevAttrs: { 9 + patches = (prevAttrs.patches or [ ]) ++ [ 10 + ../../patches/${prevAttrs.pname}/1-fix-subtitle-saving.patch 11 + ../../patches/${prevAttrs.pname}/2-fix-subtitle-saving.patch 12 + ]; 13 + } 14 + ); 7 15 jellyfin-web = prev.jellyfin-web.overrideAttrs ( 8 16 finalAttrs: prevAttrs: { 9 17 patches = (prevAttrs.patches or [ ]) ++ [ 10 - ../../patches/jellyfin-web/0001-feat-Add-blur-title-and-description-settings.patch 11 - ../../patches/jellyfin-web/0002-remove-blur-audio-title.patch 12 - ../../patches/jellyfin-web/0003-refactor-getListViewHtml-to-receive-new-settings-in-.patch 13 - ../../patches/jellyfin-web/0004-blur-title-and-description-in-episode-details-and-Mo.patch 14 - ../../patches/jellyfin-web/0005-fix-lint.patch 15 - ../../patches/jellyfin-web/pr7315-per-frame-playback.patch 18 + ../../patches/${prevAttrs.pname}/0001-feat-Add-blur-title-and-description-settings.patch 19 + ../../patches/${prevAttrs.pname}/0002-remove-blur-audio-title.patch 20 + ../../patches/${prevAttrs.pname}/0003-refactor-getListViewHtml-to-receive-new-settings-in-.patch 21 + ../../patches/${prevAttrs.pname}/0004-blur-title-and-description-in-episode-details-and-Mo.patch 22 + ../../patches/${prevAttrs.pname}/0005-fix-lint.patch 23 + ../../patches/${prevAttrs.pname}/pr7315-per-frame-playback.patch 16 24 ]; 17 25 } 18 26 );
+23
patches/jellyfin/1-fix-subtitle-saving.patch
··· 1 + From 417df3df579fbfb19a960125ce0404dc6f5b68a5 Mon Sep 17 00:00:00 2001 2 + From: MBR#0001 <mbr@mbr.pw> 3 + Date: Wed, 1 Apr 2026 16:24:11 +0200 4 + Subject: [PATCH 1/2] Fix subtitle saving 5 + 6 + --- 7 + MediaBrowser.Providers/Subtitles/SubtitleManager.cs | 3 ++- 8 + 1 file changed, 2 insertions(+), 1 deletion(-) 9 + 10 + diff --git a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs 11 + index 6821e55aab..e51826f0ec 100644 12 + --- a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs 13 + +++ b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs 14 + @@ -239,7 +239,8 @@ private async Task TrySaveSubtitle( 15 + 16 + private async Task TrySaveToFiles(Stream stream, List<string> savePaths, Video video, string extension) 17 + { 18 + - if (!_allowedSubtitleFormats.Contains("." + extension, StringComparison.OrdinalIgnoreCase)) 19 + + if (!_allowedSubtitleFormats.Contains("." + extension, StringComparison.OrdinalIgnoreCase) 20 + + && !_allowedSubtitleFormats.Contains(extension, StringComparison.OrdinalIgnoreCase)) 21 + { 22 + throw new ArgumentException($"Invalid subtitle format: {extension}"); 23 + }
+23
patches/jellyfin/2-fix-subtitle-saving.patch
··· 1 + From cc678383c9d67fa10ff85d22c19c787ce0374aff Mon Sep 17 00:00:00 2001 2 + From: MBR-0001 <55142207+MBR-0001@users.noreply.github.com> 3 + Date: Thu, 2 Apr 2026 00:23:18 +0200 4 + Subject: [PATCH 2/2] Simplify subtitle format validation condition 5 + 6 + --- 7 + MediaBrowser.Providers/Subtitles/SubtitleManager.cs | 3 +-- 8 + 1 file changed, 1 insertion(+), 2 deletions(-) 9 + 10 + diff --git a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs 11 + index e51826f0ec..a78ec995cf 100644 12 + --- a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs 13 + +++ b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs 14 + @@ -239,8 +239,7 @@ private async Task TrySaveSubtitle( 15 + 16 + private async Task TrySaveToFiles(Stream stream, List<string> savePaths, Video video, string extension) 17 + { 18 + - if (!_allowedSubtitleFormats.Contains("." + extension, StringComparison.OrdinalIgnoreCase) 19 + - && !_allowedSubtitleFormats.Contains(extension, StringComparison.OrdinalIgnoreCase)) 20 + + if (!_allowedSubtitleFormats.Contains(extension, StringComparison.OrdinalIgnoreCase)) 21 + { 22 + throw new ArgumentException($"Invalid subtitle format: {extension}"); 23 + }