mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 20:38:24 +02:00
Fix comparison between different types
This commit is contained in:
parent
67922dff50
commit
b20b648659
1 changed files with 2 additions and 2 deletions
|
@ -764,13 +764,13 @@ namespace MediaBrowser.Api.Playback
|
||||||
|
|
||||||
if (mediaSource == null)
|
if (mediaSource == null)
|
||||||
{
|
{
|
||||||
var mediaSources = (await MediaSourceManager.GetPlayackMediaSources(LibraryManager.GetItemById(request.Id), null, false, false, cancellationToken).ConfigureAwait(false)).ToList();
|
var mediaSources = await MediaSourceManager.GetPlayackMediaSources(LibraryManager.GetItemById(request.Id), null, false, false, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
mediaSource = string.IsNullOrEmpty(request.MediaSourceId)
|
mediaSource = string.IsNullOrEmpty(request.MediaSourceId)
|
||||||
? mediaSources[0]
|
? mediaSources[0]
|
||||||
: mediaSources.Find(i => string.Equals(i.Id, request.MediaSourceId));
|
: mediaSources.Find(i => string.Equals(i.Id, request.MediaSourceId));
|
||||||
|
|
||||||
if (mediaSource == null && request.MediaSourceId.Equals(request.Id))
|
if (mediaSource == null && Guid.Parse(request.MediaSourceId) == request.Id)
|
||||||
{
|
{
|
||||||
mediaSource = mediaSources[0];
|
mediaSource = mediaSources[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue