mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix ArgumentNullException when downloading season logos (#14141)
This commit is contained in:
parent
8339111732
commit
a6a89f7953
@ -483,6 +483,22 @@ namespace MediaBrowser.Providers.Manager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == ImageType.Logo && saveLocally)
|
||||||
|
{
|
||||||
|
if (season is not null && season.IndexNumber.HasValue)
|
||||||
|
{
|
||||||
|
var seriesFolder = season.SeriesPath;
|
||||||
|
|
||||||
|
var seasonMarker = season.IndexNumber.Value == 0
|
||||||
|
? "-specials"
|
||||||
|
: season.IndexNumber.Value.ToString("00", CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
|
var imageFilename = "season" + seasonMarker + "-logo" + extension;
|
||||||
|
|
||||||
|
return Path.Combine(seriesFolder, imageFilename);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string filename;
|
string filename;
|
||||||
var folderName = item is MusicAlbum ||
|
var folderName = item is MusicAlbum ||
|
||||||
item is MusicArtist ||
|
item is MusicArtist ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user