From 666db81a09e32f4fd8ddb201ff2fddaca0481007 Mon Sep 17 00:00:00 2001 From: gnattu Date: Wed, 16 Oct 2024 17:47:24 +0800 Subject: [PATCH] Allow invalid id for trickplay Co-authored-by: JPVenson --- Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs index 4aa998591e..25870305e2 100644 --- a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs +++ b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs @@ -498,12 +498,10 @@ public class TrickplayManager : ITrickplayManager var trickplayManifest = new Dictionary>(); foreach (var mediaSource in item.GetMediaSources(false)) { - if (mediaSource.IsRemote) + if (mediaSource.IsRemote || !Guid.TryParse(mediaSource.Id, out var mediaSourceId) { continue; } - - var mediaSourceId = Guid.Parse(mediaSource.Id); var trickplayResolutions = await GetTrickplayResolutions(mediaSourceId).ConfigureAwait(false); if (trickplayResolutions.Count > 0)