diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2024-10-16 17:47:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-16 17:47:24 +0800 |
| commit | 666db81a09e32f4fd8ddb201ff2fddaca0481007 (patch) | |
| tree | ec382682dd5da49dc7d8d0c2e842245499a9a6f3 /Jellyfin.Server.Implementations/Trickplay | |
| parent | bcb2a3d5e95a15de9ad41885ab27f68479473f19 (diff) | |
Allow invalid id for trickplay
Co-authored-by: JPVenson <ger-delta-07@hotmail.de>
Diffstat (limited to 'Jellyfin.Server.Implementations/Trickplay')
| -rw-r--r-- | Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs index 4aa998591..25870305e 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<string, Dictionary<int, TrickplayInfo>>(); 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) |
