Plex-Meta-Manager icon indicating copy to clipboard operation
Plex-Meta-Manager copied to clipboard

[Feature]: option to run metadata files through YAML pretty-printer before use

Open chazlarson opened this issue 2 years ago • 0 comments

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:

  1. file can't be written
  2. file fails linting

And a warning if:

  1. backup can't be written

Additional Information

No response

chazlarson avatar Mar 21 '22 15:03 chazlarson