diff options
-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; |