Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KodiProps] Fix multi wrapper separator #1691

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

knaerzche
Copy link
Contributor

@knaerzche knaerzche commented Oct 11, 2024

According to the wiki, the separator for multiple wrappers is ,, not +.

Description

ADP::KODI_PROPS::CCompKodiProps::ParseDrmOldProps currently builds multiple wrappers with + as seperator which makes it unparsable for HelperWv::TranslateWrapper .

Motivation and context

Fix a bug.

How has this been tested?

With a stream using json,base64 (JB)

Screenshots (if appropriate):

Types of change

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • [x ] I have read the Contributing document
  • [ x] My code follows the Code Guidelines of this project
  • My change requires a change to the Wiki documentation
  • I have updated the documentation accordingly

Copy link
Collaborator

@CastagnaIT CastagnaIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is wrong,
as is also explained on wiki, the code its correct
i just forgot to fix the above method comment

@knaerzche
Copy link
Contributor Author

knaerzche commented Oct 12, 2024

It's not like I scanned the comments in this code and adapted the code to the comment: Playing a stream with the mentioned "unwrapping method" fails with: Cannot translate license wrapper, unknown type json+base64 and this change fixes it. I didn't look too deep in this code, but I'd guess it comes from here:

drmCfg.license.unwrapper = "json+base64";
- it uses + as seperator, not ,

@CastagnaIT
Copy link
Collaborator

CastagnaIT commented Oct 12, 2024

yeah good catch
please fix all them with ,, and also the above method comment

According to the wiki, the separator for multiple wrappers is ',', not '+'.
Fix it.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
@knaerzche
Copy link
Contributor Author

Done. (Took some time for me to find the wiki entry you were referring to)

@knaerzche knaerzche changed the title HelperWv: Fix TranslateWraper [KodiProps] Fix multi wrapper separator Oct 12, 2024
Copy link
Collaborator

@CastagnaIT CastagnaIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done
thank you for your first contrib

@CastagnaIT CastagnaIT merged commit 933a28d into xbmc:Piers Oct 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants