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

Refactor AdvancedSettings; add example XML #405

Merged
merged 1 commit into from
May 17, 2018

Conversation

bugwelle
Copy link
Collaborator

@bugwelle bugwelle commented Apr 12, 2018

commit message:

  • refactor "loadMappings" functions
  • trim values of XML elements/attributes
  • clear mappings if the corresponding XML element exists
  • add an example advancedsettings.xml with all default values

AdvancedSettings

This pull request refactors AdvancedSettings.cpp. It removes redundant code and simplifies code regarding mappings. Also, tags are now trimmed and *.mk3d is added as a video format.

Example advancedsettings.xml

This PR also adds an example xml file that is based on your version posted here. I added missing tags and changed the values to MediaElch's defaults.

I'm not exactly sure what <forceCache> does. Could you explain that tag to me? 😄

Changes

This PR has one change regarding the XML. useFirstStudioOnly is no longer an XML tag but instead an attribute of <studios>. This makes handling mappings easier as we only need one method for it. I also didn't find any documentation explaining that tag. The only website that mentions it is a post on https://www.kodinerds.net/.
So I guess (?) this won't affect many users.

@bugwelle bugwelle force-pushed the advanced_settings branch 2 times, most recently from 0f41e29 to af22dfe Compare April 12, 2018 16:29
 - refactor "loadMappings" functions
 - recognize "*.mk3d" as a video file format
 - trim values of XML elements/attributes
 - clear mappings if the corresponding XML element exists
 - add an example advancedsettings.xml with all default values
@Komet Komet merged commit 576f4cc into Komet:master May 17, 2018
@bugwelle bugwelle deleted the advanced_settings branch May 17, 2018 13:13
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