|
65 | 65 |
|
66 | 66 | configFile = mkOption {
|
67 | 67 | type = types.path;
|
68 |
| - description = "Path to the recyclarr YAML configuration file. See [Recyclarr's documentation](https://recyclarr.dev/wiki/yaml/config-reference) for more information. |
| 68 | + description = '' |
| 69 | + Path to the recyclarr YAML configuration file. See [Recyclarr's |
| 70 | + documentation](https://recyclarr.dev/wiki/yaml/config-reference) |
| 71 | + for more information. |
| 72 | +
|
| 73 | + The API keys for Radarr and Sonarr can be referenced in the config |
| 74 | + file using the `RADARR_API_KEY` and `SONARR_API_KEY` environment |
| 75 | + variables (with macro `!env_var`). The below example configuration |
| 76 | + shows how these values can be used: |
69 | 77 |
|
70 |
| - **Note:** the API keys for Radarr and Sonarr can be referenced in the config file using the `RADARR_API_KEY` and `SONARR_API_KEY` environment variables (with macro `!env_var`)."; |
| 78 | + ```yaml |
| 79 | + sonarr: |
| 80 | + series: |
| 81 | + base_url: "http://localhost:8989" |
| 82 | + api_key: !env_var SONARR_API_KEY |
| 83 | + quality_definition: |
| 84 | + type: series |
| 85 | + delete_old_custom_formats: true |
| 86 | + custom_formats: |
| 87 | + - trash_ids: |
| 88 | + - 85c61753df5da1fb2aab6f2a47426b09 # BR-DISK |
| 89 | + - 9c11cd3f07101cdba90a2d81cf0e56b4 # LQ |
| 90 | + - 47435ece6b99a0b477caf360e79ba0bb # x265 (HD) |
| 91 | + - fbcb31d8dabd2a319072b84fc0b7249c # Extras |
| 92 | + assign_scores_to: |
| 93 | + - name: WEB-DL (1080p) |
| 94 | + score: -10000 |
| 95 | + radarr: |
| 96 | + movies: |
| 97 | + base_url: "http://localhost:7878" |
| 98 | + api_key: !env_var RADARR_API_KEY |
| 99 | + quality_definition: |
| 100 | + type: movie |
| 101 | + delete_old_custom_formats: true |
| 102 | + custom_formats: |
| 103 | + - trash_ids: |
| 104 | + - 570bc9ebecd92723d2d21500f4be314c # Remaster |
| 105 | + - eca37840c13c6ef2dd0262b141a5482f # 4K Remaster |
| 106 | + - e0c07d59beb37348e975a930d5e50319 # Criterion Collection |
| 107 | + - 9d27d9d2181838f76dee150882bdc58c # Masters of Cinema |
| 108 | + - db9b4c4b53d312a3ca5f1378f6440fc9 # Vinegar Syndrome |
| 109 | + assign_scores_to: |
| 110 | + - name: HD Bluray + WEB |
| 111 | + score: 25 |
| 112 | + ``` |
| 113 | + ''; |
71 | 114 | example = "./recyclarr.yaml";
|
72 | 115 | };
|
73 | 116 | };
|
|
0 commit comments