Optimize anime identity

This commit is contained in:
cxfksword 2023-02-21 21:36:35 +08:00
parent 7f347542fa
commit 5f7ce25b5a
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
var seasonResult = await this._tmdbApi
.GetSeasonAsync(seriesTmdbId.ToInt(), seasonNumber.Value, info.MetadataLanguage, info.MetadataLanguage, cancellationToken)
.ConfigureAwait(false);
if (seasonResult == null || seasonResult.Episodes.Count < episodeNumber.Value)
if (seasonResult == null || seasonResult.Episodes == null || seasonResult.Episodes.Count < episodeNumber.Value)
{
this.Log("Cant found episode data from tmdb. Name: {0} seriesTmdbId: {1} seasonNumber: {2} episodeNumber: {3}", info.Name, seriesTmdbId, seasonNumber, episodeNumber);
return result;