mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 13:58:29 +01:00
Allow invalid id for trickplay
Co-authored-by: JPVenson <ger-delta-07@hotmail.de>
This commit is contained in:
@@ -498,12 +498,10 @@ public class TrickplayManager : ITrickplayManager
|
|||||||
var trickplayManifest = new Dictionary<string, Dictionary<int, TrickplayInfo>>();
|
var trickplayManifest = new Dictionary<string, Dictionary<int, TrickplayInfo>>();
|
||||||
foreach (var mediaSource in item.GetMediaSources(false))
|
foreach (var mediaSource in item.GetMediaSources(false))
|
||||||
{
|
{
|
||||||
if (mediaSource.IsRemote)
|
if (mediaSource.IsRemote || !Guid.TryParse(mediaSource.Id, out var mediaSourceId)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var mediaSourceId = Guid.Parse(mediaSource.Id);
|
|
||||||
var trickplayResolutions = await GetTrickplayResolutions(mediaSourceId).ConfigureAwait(false);
|
var trickplayResolutions = await GetTrickplayResolutions(mediaSourceId).ConfigureAwait(false);
|
||||||
|
|
||||||
if (trickplayResolutions.Count > 0)
|
if (trickplayResolutions.Count > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user