Skip to content

Commit

Permalink
Merge pull request xbmc#24303 from ksooo/dialogs-fix-browse-for-subti…
Browse files Browse the repository at this point in the history
…tle-path

[dialogs] Fix CGUIDialogSubtitleSettings::BrowseForSubtitle to use it…
  • Loading branch information
enen92 authored Dec 22, 2023
2 parents a70cafb + 18fbcf0 commit d9bc400
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xbmc/video/dialogs/GUIDialogSubtitleSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ std::string CGUIDialogSubtitleSettings::BrowseForSubtitle()
}

std::string strPath;
if (URIUtils::IsInRAR(g_application.CurrentFileItem().GetPath()) || URIUtils::IsInZIP(g_application.CurrentFileItem().GetPath()))
const std::string dynPath{g_application.CurrentFileItem().GetDynPath()};
if (URIUtils::IsInRAR(dynPath) || URIUtils::IsInZIP(dynPath))
{
strPath = CURL(g_application.CurrentFileItem().GetPath()).GetHostName();
strPath = CURL(dynPath).GetHostName();
}
else if (!URIUtils::IsPlugin(g_application.CurrentFileItem().GetPath()))
else if (!URIUtils::IsPlugin(dynPath))
{
strPath = g_application.CurrentFileItem().GetPath();
strPath = dynPath;
}

std::string strMask =
Expand Down

0 comments on commit d9bc400

Please sign in to comment.