aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2024-03-07 10:36:13 +1000
committerGitHub <noreply@github.com>2024-03-07 10:36:13 +1000
commit9ae50be37c91a1ad1be26204dfc042802ee6c651 (patch)
treee492d864fdafe6ab98198b56f6aadd1ba619f638
parent8cdb881a95208da8f1baf0834122379db6dcc0e4 (diff)
parent32cab38d01afeb4c66752da8e14d7c62841793c6 (diff)
Merge pull request #24752 from hagaygo/subtitle-store-fix
Store streamed video subtitle on custom subtitles path if defined by user
-rw-r--r--xbmc/video/dialogs/GUIDialogSubtitles.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/video/dialogs/GUIDialogSubtitles.cpp b/xbmc/video/dialogs/GUIDialogSubtitles.cpp
index 1a331b1675..e178a0002e 100644
--- a/xbmc/video/dialogs/GUIDialogSubtitles.cpp
+++ b/xbmc/video/dialogs/GUIDialogSubtitles.cpp
@@ -548,14 +548,15 @@ void CGUIDialogSubtitles::OnDownloadComplete(const CFileItemList *items, const s
std::vector<std::string> vecFiles;
std::string strCurrentFilePath;
- if (URIUtils::IsHTTP(strCurrentFile))
+ const std::string subPath = CSpecialProtocol::TranslatePath("special://subtitles");
+
+ if (subPath.empty() && URIUtils::IsHTTP(strCurrentFile))
{
strCurrentFile = "TempSubtitle";
vecFiles.push_back(strCurrentFile);
}
else
{
- std::string subPath = CSpecialProtocol::TranslatePath("special://subtitles");
if (!subPath.empty())
strDownloadPath = subPath;