mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fixed virtual episode image saving
This commit is contained in:
parent
f3ecfc4e05
commit
b487794860
@ -1530,7 +1530,8 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Refresh metadata
|
// Refresh metadata
|
||||||
return RefreshMetadata(CancellationToken.None, forceSave: true);
|
// Need to disable slow providers or the image might get re-downloaded
|
||||||
|
return RefreshMetadata(CancellationToken.None, forceSave: true, allowSlowProviders: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -211,7 +211,7 @@ namespace MediaBrowser.Providers.TV
|
|||||||
else if (airDate.Value > now)
|
else if (airDate.Value > now)
|
||||||
{
|
{
|
||||||
// tvdb has a lot of nearly blank episodes
|
// tvdb has a lot of nearly blank episodes
|
||||||
_logger.Info("Creating virtual future episode {0} {1}x{2}", series.Name, tuple.Item1, tuple.Item2);
|
_logger.Info("Creating virtual unaired episode {0} {1}x{2}", series.Name, tuple.Item1, tuple.Item2);
|
||||||
|
|
||||||
await AddEpisode(series, tuple.Item1, tuple.Item2, cancellationToken).ConfigureAwait(false);
|
await AddEpisode(series, tuple.Item1, tuple.Item2, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
|
@ -67,30 +67,20 @@ namespace MediaBrowser.Server.Implementations.Providers
|
|||||||
throw new ArgumentNullException("mimeType");
|
throw new ArgumentNullException("mimeType");
|
||||||
}
|
}
|
||||||
|
|
||||||
var saveLocally = _config.Configuration.SaveLocalMeta;
|
var saveLocally = _config.Configuration.SaveLocalMeta || item is IItemByName || item is User;
|
||||||
|
|
||||||
if (item is IItemByName)
|
if (item is Audio || item.Parent == null)
|
||||||
{
|
|
||||||
saveLocally = true;
|
|
||||||
}
|
|
||||||
else if (item is User)
|
|
||||||
{
|
|
||||||
saveLocally = true;
|
|
||||||
}
|
|
||||||
else if (item is Audio || item.Parent == null || string.IsNullOrEmpty(item.MetaLocation))
|
|
||||||
{
|
{
|
||||||
saveLocally = false;
|
saveLocally = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type != ImageType.Primary)
|
if (type != ImageType.Primary && item is Episode)
|
||||||
{
|
{
|
||||||
if (item is Episode)
|
saveLocally = false;
|
||||||
{
|
|
||||||
saveLocally = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.LocationType == LocationType.Remote || item.LocationType == LocationType.Virtual)
|
var locationType = item.LocationType;
|
||||||
|
if (locationType == LocationType.Remote || locationType == LocationType.Virtual)
|
||||||
{
|
{
|
||||||
saveLocally = false;
|
saveLocally = false;
|
||||||
}
|
}
|
||||||
@ -373,7 +363,7 @@ namespace MediaBrowser.Server.Implementations.Providers
|
|||||||
path = GetSavePathForItemInMixedFolder(item, type, filename, extension);
|
path = GetSavePathForItemInMixedFolder(item, type, filename, extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(item.MetaLocation))
|
if (string.IsNullOrEmpty(path))
|
||||||
{
|
{
|
||||||
path = Path.Combine(item.MetaLocation, filename + extension);
|
path = Path.Combine(item.MetaLocation, filename + extension);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user