|
|
|
@ -59,7 +59,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
|
|
|
|
|
throw new ArgumentNullException(nameof(mediaSourceId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var mediaSources = await _mediaSourceManager.GetPlayackMediaSources(item, null, true, false, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
var mediaSources = await _mediaSourceManager.GetPlaybackMediaSources(item, null, true, false, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
var mediaSource = mediaSources
|
|
|
|
|
.FirstOrDefault(i => string.Equals(i.Id, mediaSourceId, StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
if (mediaSource == null)
|
|
|
|
|