From 32cab38d01afeb4c66752da8e14d7c62841793c6 Mon Sep 17 00:00:00 2001 From: Hagay Goshen Date: Fri, 23 Feb 2024 16:50:10 +0200 Subject: [subtitles] Store streamed video downloaded subtitle. Applied jenkins diff patch Update xbmc/video/dialogs/GUIDialogSubtitles.cpp Co-authored-by: Miguel Borges de Freitas --- xbmc/video/dialogs/GUIDialogSubtitles.cpp | 5 +++-- 1 file 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 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; -- cgit v1.2.3