mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
extend directory watcher remove temp ignore delay
This commit is contained in:
parent
b8b976d5c2
commit
1f0fc33a86
@ -67,7 +67,7 @@ namespace MediaBrowser.Server.Implementations.IO
|
|||||||
public async void RemoveTempIgnore(string path)
|
public async void RemoveTempIgnore(string path)
|
||||||
{
|
{
|
||||||
// This is an arbitraty amount of time, but delay it because file system writes often trigger events after RemoveTempIgnore has been called.
|
// This is an arbitraty amount of time, but delay it because file system writes often trigger events after RemoveTempIgnore has been called.
|
||||||
await Task.Delay(1500).ConfigureAwait(false);
|
await Task.Delay(2000).ConfigureAwait(false);
|
||||||
|
|
||||||
string val;
|
string val;
|
||||||
_tempIgnoredPaths.TryRemove(path, out val);
|
_tempIgnoredPaths.TryRemove(path, out val);
|
||||||
|
@ -70,15 +70,6 @@ namespace MediaBrowser.Server.Implementations.Providers
|
|||||||
throw new ArgumentNullException("mimeType");
|
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);
|
var saveLocally = _config.Configuration.SaveLocalMeta && item.Parent != null && !(item is Audio);
|
||||||
|
|
||||||
if (item is IItemByName || item is User)
|
if (item is IItemByName || item is User)
|
||||||
@ -97,6 +88,15 @@ namespace MediaBrowser.Server.Implementations.Providers
|
|||||||
saveLocally = false;
|
saveLocally = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == ImageType.Backdrop && imageIndex == null)
|
||||||
|
{
|
||||||
|
imageIndex = item.BackdropImagePaths.Count;
|
||||||
|
}
|
||||||
|
else if (type == ImageType.Screenshot && imageIndex == null)
|
||||||
|
{
|
||||||
|
imageIndex = item.ScreenshotImagePaths.Count;
|
||||||
|
}
|
||||||
|
|
||||||
var paths = GetSavePaths(item, type, imageIndex, mimeType, saveLocally);
|
var paths = GetSavePaths(item, type, imageIndex, mimeType, saveLocally);
|
||||||
|
|
||||||
// If there are more than one output paths, the stream will need to be seekable
|
// If there are more than one output paths, the stream will need to be seekable
|
||||||
|
Loading…
Reference in New Issue
Block a user