-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[scraper] Pass JSON serialized path settings to python scrapers #17063
[scraper] Pass JSON serialized path settings to python scrapers #17063
Conversation
Thx, tested & works great. |
Thanks. Can you return an empty object/dictionary, |
I added handling for empty serializations in |
7b5b6b8
to
2812ce4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I runtime tested it and it works well. The new interface looks great. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the current code guidelines.
@@ -800,10 +819,12 @@ static bool PythonDetails(const std::string &ID, | |||
const std::string &key, | |||
const std::string &url, | |||
const std::string &action, | |||
const std::string &pathSettings, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left-align
*
and&
to the base type they modify.
https://github.com/xbmc/xbmc/blob/master/docs/CODE_GUIDELINES.md#52-pointer-and-reference-types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really the intention to use a different formatting style on the newly added parameter than for all the other parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also adjust the style of the already existing parameters to match the current code guidelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which has absolutely nothing to do with this PR.
2812ce4
to
13d7a51
Compare
Addressed almost all style issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON implementation looks good
13d7a51
to
d9d0bea
Compare
@Montellese Sorry I had no time to check or test your code but from a cursory glance it looks better than my amateur approach. I guess I'll close my PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested again with the latest cosmetic changes and it still work ok.
cheers!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I have limited understanding of Kodi settings internals, but the scraper part looks good.
d9d0bea
to
47d015e
Compare
Rebased after merging #17062 and waiting for Jenkins results before merging. |
jenkins build this please |
See #17112 for the backport for Leia. |
…erializer [scraper] Pass JSON serialized path settings to python scrapers
Description
This is an alternative approach to #16964 and uses the newly introduce
ISettingsValueSerializerInterface
from #17062. It converts the scraper path settings to flat JSON like e.g.and passes them to the python based scrapers.
This will need to be backported to Leia together with the following commit from #17062: 7fbb037
Motivation and Context
See #16964. I prefer to use a clean approach / solution.
How Has This Been Tested?
Manually.
Types of change
Checklist: