Plex-Meta-Manager
Plex-Meta-Manager copied to clipboard
[Feature]: option to run metadata files through YAML pretty-printer before use
Is your feature request related to a problem? Please elaborate.
It seems that there are regular problems with YAML formatting issues that don't have to do with PMM; things like using tabs and spaces to indent and so on.
It might be useful to provide a facility to run metadata YAML files through a linter to clear some of these things up [or make them more obvious in later inspection] prior to trying to process the file.
Describe the solution you'd like
I'm imagining a global setting like preflight_yaml_files=True
or the like that would lint the user's metadata files, saving a "Whatever.yml.original` if possible, and throwing an error if:
- file can't be written
- file fails linting
And a warning if:
- backup can't be written
Additional Information
No response