aetaric / checkrr

Checkrr Scans your library files for corrupt media and optionally replaces the files via sonarr and radarr
MIT License
234 stars 10 forks source link

[BUG] viper doesn't support case sensitive keys #116

Open aetaric opened 3 weeks ago

aetaric commented 3 weeks ago

Describe the bug When working with path mappings in arr services, viper is forcing the key case to lowercase, violating the YAML spec. This is causing issues with checkrr being unable to find the files in arr services.

To Reproduce Steps to reproduce the behavior:

  1. set an arr service's path mapping to have capital letters in the path.
  2. run checkrr with the config and the --debug flag
  3. observe checkrr reading the path mapping key as a lowercase value in the debug output.

Expected behavior Map key case should be respected.

Screenshots n/a

Desktop (please complete the following information):

Additional context See spf13/viper#373 and spf13/viper#1014

aetaric commented 3 weeks ago

If you are having issues when using the path mapping directive for arr services, this is why. It will be patched in 3.5.0