Allow invalid id for trickplay

Co-authored-by: JPVenson <ger-delta-07@hotmail.de>
pull/12824/head
gnattu 4 months ago committed by GitHub
parent bcb2a3d5e9
commit 666db81a09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)

Loading…
Cancel
Save