Skip to content

Commit

Permalink
[KodiProps] Fix multi wrapper separator
Browse files Browse the repository at this point in the history
According to the wiki, the separator for multiple wrappers is ',', not '+'.
Fix it.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
  • Loading branch information
knaerzche committed Oct 12, 2024
1 parent 8720557 commit 365ffa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/CompKodiProps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,13 @@ void ADP::KODI_PROPS::CCompKodiProps::ParseDrmOldProps(
else if (STRING::StartsWith(wrapperPrefix, "BJ"))
{
isJsonWrapper = true;
drmCfg.license.unwrapper = "base64+json";
drmCfg.license.unwrapper = "base64,json";
jsonWrapperCfg = wrapperPrefix.substr(2);
}
else if (STRING::StartsWith(wrapperPrefix, "JB"))
{
isJsonWrapper = true;
drmCfg.license.unwrapper = "json+base64";
drmCfg.license.unwrapper = "json,base64";
jsonWrapperCfg = wrapperPrefix.substr(2);
}
else if (STRING::StartsWith(wrapperPrefix, "J"))
Expand Down
2 changes: 1 addition & 1 deletion src/decrypters/HelperWv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ enum class Wrapper
};

// \brief Translate a wrapper string in to relative vector of enum values.
// e.g. "json+base64" --> JSON, BASE64
// e.g. "json,base64" --> JSON, BASE64
std::vector<Wrapper> TranslateWrapper(std::string_view wrapper)
{
const std::vector<std::string> wrappers = STRING::SplitToVec(wrapper, ',');
Expand Down

0 comments on commit 365ffa4

Please sign in to comment.