diff options
author | Hagay Goshen <hagay.goshen@gmail.com> | 2024-02-23 16:50:10 +0200 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2024-03-07 09:25:32 +1000 |
commit | 32cab38d01afeb4c66752da8e14d7c62841793c6 (patch) | |
tree | e07950cf4360908c54706a2a8d8348beebfc4915 | |
parent | 480476cb59264f54d0c85da2529d2bd64a4874ad (diff) |
[subtitles] Store streamed video downloaded subtitle.
Applied jenkins diff patch
Update xbmc/video/dialogs/GUIDialogSubtitles.cpp
Co-authored-by: Miguel Borges de Freitas <enen92@kodi.tv>
-rw-r--r-- | xbmc/video/dialogs/GUIDialogSubtitles.cpp | 5 |
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; |