mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
remove need to pass in image index when adding backdrops
This commit is contained in:
@@ -70,6 +70,15 @@ namespace MediaBrowser.Server.Implementations.Providers
|
||||
throw new ArgumentNullException("mimeType");
|
||||
}
|
||||
|
||||
if (type == ImageType.Backdrop && imageIndex == null)
|
||||
{
|
||||
imageIndex = item.BackdropImagePaths.Count;
|
||||
}
|
||||
else if (type == ImageType.Screenshot && imageIndex == null)
|
||||
{
|
||||
imageIndex = item.ScreenshotImagePaths.Count;
|
||||
}
|
||||
|
||||
var saveLocally = _config.Configuration.SaveLocalMeta && item.Parent != null && !(item is Audio);
|
||||
|
||||
if (item is IItemByName || item is User)
|
||||
|
||||
Reference in New Issue
Block a user