mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
9adbf4e9d8
commit
c0f4c90d57
@ -79,7 +79,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.People
|
|||||||
return remoteImages.OrderByLanguageDescending(language);
|
return remoteImages.OrderByLanguageDescending(language);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new List<RemoteImageInfo>();
|
return Enumerable.Empty<RemoteImageInfo>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
|
public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||||
|
@ -60,7 +60,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.People
|
|||||||
if (searchInfo.IsAutomated)
|
if (searchInfo.IsAutomated)
|
||||||
{
|
{
|
||||||
// Don't hammer moviedb searching by name
|
// Don't hammer moviedb searching by name
|
||||||
return new List<RemoteSearchResult>();
|
return Enumerable.Empty<RemoteSearchResult>();
|
||||||
}
|
}
|
||||||
|
|
||||||
var personSearchResult = await _tmdbClientManager.SearchPersonAsync(searchInfo.Name, cancellationToken).ConfigureAwait(false);
|
var personSearchResult = await _tmdbClientManager.SearchPersonAsync(searchInfo.Name, cancellationToken).ConfigureAwait(false);
|
||||||
|
@ -103,6 +103,5 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
|||||||
{
|
{
|
||||||
return item is Controller.Entities.TV.Episode;
|
return item is Controller.Entities.TV.Episode;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
|||||||
|
|
||||||
if (series?.Images == null)
|
if (series?.Images == null)
|
||||||
{
|
{
|
||||||
return Array.Empty<RemoteImageInfo>();
|
return Enumerable.Empty<RemoteImageInfo>();
|
||||||
}
|
}
|
||||||
|
|
||||||
var remoteImages = new List<RemoteImageInfo>();
|
var remoteImages = new List<RemoteImageInfo>();
|
||||||
|
Loading…
Reference in New Issue
Block a user