aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-05-05 17:32:58 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-05-05 17:32:58 +0200
commit9ade1fb8f624c76f8cb0165743d9fcc5e22744e9 (patch)
tree37e309ee93d0d33c54a6e86bd76570b4f4878036
parent4178e0ebaf2ff7162f474e17e27cd5bbbfafd548 (diff)
Fix subtitle save path
-rw-r--r--MediaBrowser.Providers/Subtitles/SubtitleManager.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
index a78ec995cf..c3458d4b2a 100644
--- a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
+++ b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
@@ -228,10 +228,11 @@ namespace MediaBrowser.Providers.Subtitles
var mediaFolderPath = Path.GetFullPath(Path.Combine(video.ContainingFolderPath, saveFileName));
savePaths.Add(mediaFolderPath);
}
-
- var internalPath = Path.GetFullPath(Path.Combine(video.GetInternalMetadataPath(), saveFileName));
-
- savePaths.Add(internalPath);
+ else
+ {
+ var internalPath = Path.GetFullPath(Path.Combine(video.GetInternalMetadataPath(), saveFileName));
+ savePaths.Add(internalPath);
+ }
await TrySaveToFiles(memoryStream, savePaths, video, response.Format.ToLowerInvariant()).ConfigureAwait(false);
}