mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-25 02:11:45 +00:00
Merge pull request #11978 from Shadowghost/do-to-fallback-to-media-dir
Fallback to local dir when saving to media dir fails
This commit is contained in:
commit
f41efb3b2c
1 changed files with 5 additions and 1 deletions
|
|
@ -126,7 +126,11 @@ namespace MediaBrowser.Providers.Manager
|
|||
|
||||
var paths = GetSavePaths(item, type, imageIndex, mimeType, saveLocally);
|
||||
|
||||
var retryPaths = GetSavePaths(item, type, imageIndex, mimeType, !saveLocally);
|
||||
string[] retryPaths = [];
|
||||
if (saveLocally)
|
||||
{
|
||||
retryPaths = GetSavePaths(item, type, imageIndex, mimeType, false);
|
||||
}
|
||||
|
||||
// If there are more than one output paths, the stream will need to be seekable
|
||||
if (paths.Length > 1 && !source.CanSeek)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue