# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Changed - Docker: Explicit `init` is no longer required in Docker Compose. It is now built into the image. - Reduced size of the `recyclarr` executable - macOS & linux are now released as `tar.xz` archives instead of `zip`. ### Fixed - Fix CoreCLR / "killed" crash on Apple macOS platforms (#39). This was accomplished by properly signing and notarizing Recyclarr. ## [4.0.0] - 2022-12-11 This release contains **BREAKING CHANGES**. See the [v4.0 Upgrade Guide][breaking4] for required changes you need to make. [breaking4]: https://recyclarr.dev/wiki/upgrade-guide/v4.0 ### Changed - **BREAKING**: Sonarr `quality_definition` configuration updated to address unexpected changes in Sonarr v4 that caused it to stop working. See upgrade guide for details. - Default for `preferred_ratio` changed from `1.0` to using the values from the guide. ### Removed - **BREAKING**: Sonarr's `hybrid` quality definition removed. ### Fixed - Do not warn about empty configuration YAML files when they aren't really empty. ## [3.1.0] - 2022-12-10 ### Changed - Improved logging: theme changes, better exception handling, more detail written to log files. - Print instance name instead of URL in more places. - Configuration parsing is more forgiving about errors: - If there's a YAML syntax error, skip the file but continue. - If there's a validation error, skip only that instance (not the whole file). ### Fixed - Empty configuration files are skipped if they are empty (warning is printed). ## [3.0.0] - 2022-12-03 This release contains **BREAKING CHANGES**. See the [v3.0 Upgrade Guide][breaking3] for required changes you need to make. ### Added - New `configs` subdirectory. Place your `*.yml` config files here and all of them will be automatically loaded, as if you provided multiple paths to `--config`. The primary purpose of this feature is to support multiple configuration files in Docker. See [the docs][yaml-config] - Secrets support. You can now store sensitive information from your configuration YAML such as `api_key` and `base_url` in a `secrets.yml` file. See [the secrets docs][secrets] for more info. Huge thanks to @voltron4lyfe for this one. (#105, #139) - Named instances are now supported in configuration YAML. - New optional setting `repository.git_path` may be used to specify the path to a `git` executable. If not used, `PATH` will be searched. - Docker: New `RECYCLARR_CREATE_CONFIG` environment variable which, if set to `true`, will automatically create `/config/recyclarr.yml` on container start up. Default is `false`. ### Changed - **BREAKING**: Recyclarr now requires `git` to be installed on host systems when using manual installation. If using Docker, there is no breaking change since git will be bundled with the image. - Deprecated array-style instances in configuration YAML. Read more about this in the v3.0 Upgrade Guide. ### Removed - **BREAKING**: Completely removed support for `names` under `custom_formats` in `recyclarr.yml`. Note that this had already been deprecated for quite some time. - **BREAKING**: The deprecated feature that still allowed you to keep your `recyclarr.yml` next to the executable has been removed. ### Fixed - Sonarr: Run validation on Custom Formats configuration, if specified, to check for errors. - Added more instructions, fixed broken links, and simplified the way you uncomment optional parts of the YAML in the starter `recyclarr.yml` template generated by the `create-config` subcommand. [breaking3]: https://recyclarr.dev/wiki/upgrade-guide/upgrade-guide-v3.0 [yaml-config]: https://recyclarr.dev/wiki/file-structure#directory-configs [secrets]: https://recyclarr.dev/wiki/reference/secrets-reference ## [2.6.1] - 2022-10-15 ### Fixed - Sonarr: Incorrect VersionException occurred when using mixed versions of Sonarr (v4 & v3) ## [2.6.0] - 2022-10-14 ### Added - For both Sonarr and Radarr, the custom formats in the output of `--list-custom-formats` are now grouped by their category, as determined by the tables at the top of the "Collection of custom formats" pages in the guide for each service. - Recyclarr's Docker image is now available on Docker Hub! [Link][dockerhub] [dockerhub]: https://hub.docker.com/r/recyclarr/recyclarr ### Changed - Docker: `PUID` and `PGID` no longer cause a failure on container start up. ### Fixed - Use compact JSON for HTTP request/response body in debug log files. This makes logs much easier to scroll through. - Sonarr: Run version enforcement logic when using CFs instead of RPs. - A warning is now displayed when the same custom format is assigned multiple times to the same quality profile. ## [2.5.0] - 2022-09-11 ### Added - Settings: New `log_janitor` setting that allows you to specify how many log files are kept when cleaning up (deleting) old log files. See the [Settings Reference] wiki page for more details. (#91) - Sonarr: Custom Formats can now be synced to Version 4. ### Fixed - Docker: Fix `/config` permissions when not using bind-mount for the volume. (#111) - Sonarr: Error message is printed when attempting to use release profiles with Sonarr v4. (#100) ### Security - Several vulnerabilities addressed (Thanks to @snoopy82481): [CVE-2018-8292], [CVE-2019-0980], [CVE-2019-0981], [CVE-2019-0820], [CVE-2019-0657]. (#112) [CVE-2018-8292]: https://avd.aquasec.com/nvd/cve-2018-8292 [CVE-2019-0980]: https://avd.aquasec.com/nvd/cve-2019-0980 [CVE-2019-0981]: https://avd.aquasec.com/nvd/cve-2019-0981 [CVE-2019-0820]: https://avd.aquasec.com/nvd/cve-2019-0820 [CVE-2019-0657]: https://avd.aquasec.com/nvd/cve-2019-0657 [Settings Reference]: https://recyclarr.dev/wiki/reference/settings-reference ## [2.4.1] - 2022-08-26 ### Fixed - Radarr: Custom formats were always showing up as changed in the logs (#109) ## [2.4.0] - 2022-08-25 ### Added - New `--list-qualities` argument for `sonarr` and `radarr` subcommands that may be used to get a list of quality definition types from the guide. ### Changed - Quality definition data is now pulled from JSON files. ## [2.3.1] - 2022-08-20 ### Changed - Use the new paths for custom format and release profile JSON files in the guide. ## [2.3.0] - 2022-08-14 ### Added - Radarr: New `--list-custom-formats` CLI option for getting a flat list of all CFs in the guide in YAML format, ready to copy & paste. - Docker: New `edge` tag for experimental and potentially unstable builds on `master`. Includes both the latest Docker and Recyclarr changes to allow users to try them out before an official release. - Settings: New `branch` and `sha1` Repository settings. (#27) ### Changed - JSON Schema added to the config template YAML file. - `names` list under `custom_formats` in config YAML is now deprecated. Use `trash_ids` to list your custom formats instead. - Docker: The image is now rootless. The `PUID` and `PGID` environment variables are no longer used. See the [Docker] wiki page for more details. ### Fixed - Docker: Resolved errors related to `/tmp/.net` directory not existing. - An exception that says "Cannot write to a closed TextWriter" would sometimes occur at the end of running a command. - Sonarr: Validate the TRaSH Guide data better to avoid uploading bad/empty data to Sonarr. ## [2.2.1] - 2022-06-18 ### Changed - Radarr: Reword the warning about missing scores for CFs to make it more clear that having no score does not prevent CFs from being synced. ### Fixed - Do not exit when a YAML config has no sonarr or radarr section. - Sonarr: Invalid release profile JSON files no longer cause the program to exit. Instead, it just skips them and prints a warning to the user. (#87) - Radarr: Do not crash when `quality_profiles` is empty. (#89) - Settings: Use repo URL after initial clone (#90) ## [2.2.0] - 2022-06-03 ### Added - Docker support! Image name is `ghcr.io/recyclarr/recyclarr`. See the [Docker] wiki page for more information. - Global app data path support via environment variable named `RECYCLARR_APP_DATA`. The path specified here will be used as the app data path for every invocation of `recyclarr` as if `--app-data` were specified. ### Fixed - Renamed the "EVO (no WEB-DL)" custom format to "EVO (no WEBDL)" in the config template. (#77) - Radarr: `delete_old_custom_formats` works again. (#71) - The `create-config` subcommand now accepts YAML files again (it was taking a directory before, which was wrong). [Docker]: https://recyclarr.dev/wiki/installation/docker ## [2.1.2] - 2022-05-29 ### Fixed - `create-config` would fail with `--path` specified. - `migrate` no longer fails if the `cache` directory does not exist. ## [2.1.1] - 2022-05-29 ### Fixed - Exception when running `create-config` command. ## [2.1.0] - 2022-05-29 ### Added - New `--app-data` option for overriding the location of the application data directory. - New `migrate` subcommand which may be used to perform migration steps manually. ### Changed - The default location for the default YAML file (`recyclarr.yml`) has been changed to the [application data directory][appdata]. This is the same location of the `settings.yml` file. - Automatic migration has been removed. Instead, the `migrate` subcommand should be used. ### Deprecated - The `recyclarr.yml` file should no longer be located adjacent to the `recyclarr` executable. ### Fixed - Version information in help output has been fixed. - If a HOME directory is not available, throw an error to the user (use `--app-data` instead). - Create `$HOME/.config` (on Linux) if it does not exist. - Smarter migration logic in the `trash-updater` migration step that does a directory merge instead of a straight move. This is designed to fail less in cases such as `recyclarr` directory already existing. [appdata]: https://recyclarr.dev/wiki/file-structure ## [2.0.2] - 2022-05-20 ### Fixed - Sonarr: Fix unexpected missing terms when using filters. (#69) ## [2.0.1] - 2022-05-19 ### Fixed - Sonarr: `strict_negative_scores` works again (broke in v2.0 release) ## [2.0.0] - 2022-05-13 This release contains **BREAKING CHANGES**. See the [Upgrade Guide] for required changes you need to make. ### Changed - **BREAKING**: Sonarr Release profiles are now synced based on a "Trash ID" taken from [the sonarr JSON files][sonarrjson]. This breaks existing `trash.yml` and manual changes *are required*. - Do not follow HTTP redirects and instead issue a warning to the user that they are potentially using the wrong URL. - Radarr: Sanitize URLs in HTTP exception messages ([#17]). - Sonarr: Release profiles starting with `[Trash]` but are not specified in the config are deleted. ### Added - Linux MUSL builds for arm, arm64, and x64. Main target for this was supporting Alpine Linux in Docker. - Sonarr: Ability to include or exclude specific optional Required, Ignored, or Preferred terms in release profiles. - Sonarr: New `--list-release-profiles` command line option which can be used to quickly and conveniently get a list of release profiles (and their Trash IDs) so you know what to add in your YAML config under `release_profiles`. - Sonarr: New `--list-terms` command line option which can be used get a list of terms for a release profile. These lists of terms can be used to include or exclude specific optionals, for example. - [Migration System] that is responsible for performing one-time upgrade tasks as needed. [#17]: https://github.com/recyclarr/recyclarr/issues/17 [Upgrade Guide]: https://recyclarr.dev/wiki/upgrade-guide/upgrade-guide-v2.0 [sonarrjson]: https://github.com/TRaSH-/Guides/tree/master/docs/json/sonarr [Migration System]: https://recyclarr.dev/wiki/migration ## [1.8.2] - 2022-03-06 ### Fixed - Sonarr: Error when syncing optionals release profile with the `IncludeOptionals` filter setting set to `false`. ## [1.8.1] - 2022-03-05 ### Changed - Unrecognized or unwanted YAML properties in configuration YAML (`trash.yml`) now result in an error. This is to help users more easily identify mistakes. ### Fixed - Sonarr: Optionals release profile is now properly synced ## [1.8.0] - 2022-02-13 ### Added - 64-bit ARM builds for Windows, Linux, and Mac OS. - 32-bit ARM build for Linux. ## [1.7.0] - 2022-02-06 ### Added - New settings file to control non-service specific behavior of Trash Updater. See [the documentation][setref] for more information. - Trash git repository URL can be overridden in settings. - Schema added for `settings.yml`. - Add setting to bypass HTTPS certificate validation (useful for self-signed certificates used with Sonarr and Radarr instances) ([#20]). - A progress bar that is visible when pulling down Custom Formats (Radarr Only). ### Fixed - Remove `System.Reactive.xml` from the published ZIP files. - Fix exception that may occur at startup. - Sometimes the "Requesting and parsing guide markdown" step would appear stuck and fail after several minutes. Many changes have been made to try to alleviate this. [setref]: https://recyclarr.dev/wiki/reference/settings-reference [#20]: https://github.com/recyclarr/recyclarr/issues/20 ## [1.6.6] - 2021-10-30 ### Fixed - Sonarr version check failed when instances were slow to respond or there was high latency. ## [1.6.5] - 2021-10-24 ### Fixed - Fix "free-quota limit" exception that occurred in new JSON schema generation logic that was added for API backward compatibility with Sonarr. ## [1.6.4] - 2021-10-23 ### FIXED - libgit2sharp PDB is no longer required with trash.exe on Windows ([#15]) - Unexpected character error due to breaking change in Sonarr API ([#16]) [#15]: https://github.com/recyclarr/recyclarr/issues/15 [#16]: https://github.com/recyclarr/recyclarr/issues/16 ## [1.6.3] - 2021-07-31 - Fix "assembly not found" error on startup related to LibGit2Sharp (Windows only). Note that this introduces an additional file in the released ZIP files named `git2-6777db8.pdb`. This file must be next to `trash.exe`. In the future, I plan to have this extra file removed so it's just a single executable again, but it will take some time. ## [1.6.2] - 2021-07-23 ### Fixed - Directly use the Trash Guides git repository to avoid getting HTTP 403 - rate limit reached error in github. ## [1.6.1] - 2021-05-31 ### Changed - Sonarr: Use new URL for release profile guide. - Sonarr: Use new URL for quality definition guide. - Radarr: Use new URL for quality definition guide. ## [1.6.0] - 2021-05-31 ### Added - New setting `reset_unmatched_scores` under `custom_formats.quality_profiles` in YAML config which allows Trash Updater to set scores to 0 if they were not in the list of custom format names or listed but had no score applied (e.g. no score in guide). ### Changed - Support the new custom format structure in the guide: JSON files are parsed directly now. Trash Updater no longer parses the markdown file. ## [1.5.1] - 2021-05-26 ### Changed - Support `trash_score` property in Custom Format JSON from the guide. This property is optional and takes precedence over a score mentioned in the guide markdown. ## [1.5.0] - 2021-05-16 ### Added - Custom formats can now be specified by Trash ID. This is useful for situations where two or more custom formats in the guide have the same name (e.g. 'DoVi'). - Debug-level logs are now written to file in addition to the Info-level logs in console output. ### Fixed - An issue with radarr `--preview` that caused duplicate output when updating a second instance has been fixed. ## [1.4.2] - 2021-05-15 ### Fixed - Fixed using incorrect URL for Sonarr ## [1.4.1] - 2021-05-15 ### Fixed - Invalid cache data files no longer cause the program to exit. An error is printed and the application continues as if there was no cache at all. - Fix a bug that resulted in certain custom formats not having their scores set in quality profiles. - Fixed an issue where multiple instance configuration was not working. ### Changed - The log message listing custom formats without scores in the guide now prints information one per line (improved readability) - Duplicate custom formats in the guide now issue a warning and get skipped. - Do not invoke the Radarr API to update a quality profile if there are no updated scores inside it. ## [1.4.0] - 2021-05-14 ### Added - Radarr Custom Format Support. ## [1.3.3] - 2021-05-06 ### Fixed - Sonarr Quality Definition Max, when set to its maximum value of 400, is now properly set to "Unlimited". This is equivalent to the user maxing out the visual slider in the Sonarr UI. Without this, some larger sized releases were unintentionally rejected. ## [1.3.2] - 2021-05-05 ### Fixed - Fix exception that occurred when running the create-config subcommand. ## [1.3.1] - 2021-05-05 ### Changed - Executable is now compiled using [Ready to Run]. This substantially increases the size of the executable but makes the code much faster. ### Fixed - Radarr Quality Definition Max and Preferred, when set to their maximum values, are now properly set to "Unlimited". Without this, larger sized releases were unintentionally rejected. [Ready to Run]: https://docs.microsoft.com/en-us/dotnet/core/deploying/ready-to-run ## [1.3.0] - 2021-04-23 ### Added - New configuration for Sonarr release profiles that allows all optional terms to be synced. Look for `filter` in the [Configuration Reference] for more details. [Configuration Reference]: https://recyclarr.dev/wiki/reference/config-reference ## [1.2.0] - 2021-04-19 ### Added - New `create-config` subcommand to create a starter YAML config file ## [1.1.0] - 2021-04-18 ### Added - Optional terms in the release profile guides are no longer synchronized to Sonarr. ### Changed - A warning is now logged when we find a number in brackets (such as `[100]`) without the word `score` before it. This represents a potential score and bug in the guide itself. - Release profile guide parser now skips certain lines to avoid false positives: - Skip lines with leading whitespace (i.e. indented lines). - Skip admonition lines (lines starting with `!!!` or `???`). ## [1.0.0] - 2021-04-14 See the Python Migration Guide for details on how to update your YAML configuration. ### Added - Full rewrite of the application in C# .NET Core 5 - More than one configuration (YAML) file can be specified using the `--config` option. - Multiple Sonarr and Radarr instances can be specified in a single YAML config. ### Removed - Nearly all command line options removed in favor of YAML equivalents. - Completely removed old python project & source code [Unreleased]: https://github.com/recyclarr/recyclarr/compare/v4.0.0...HEAD [4.0.0]: https://github.com/recyclarr/recyclarr/compare/v3.1.0...v4.0.0 [3.1.0]: https://github.com/recyclarr/recyclarr/compare/v3.0.0...v3.1.0 [3.0.0]: https://github.com/recyclarr/recyclarr/compare/v2.6.1...v3.0.0 [2.6.1]: https://github.com/recyclarr/recyclarr/compare/v2.6.0...v2.6.1 [2.6.0]: https://github.com/recyclarr/recyclarr/compare/v2.5.0...v2.6.0 [2.5.0]: https://github.com/recyclarr/recyclarr/compare/v2.4.1...v2.5.0 [2.4.1]: https://github.com/recyclarr/recyclarr/compare/v2.4.0...v2.4.1 [2.4.0]: https://github.com/recyclarr/recyclarr/compare/v2.3.1...v2.4.0 [2.3.1]: https://github.com/recyclarr/recyclarr/compare/v2.3.0...v2.3.1 [2.3.0]: https://github.com/recyclarr/recyclarr/compare/v2.2.1...v2.3.0 [2.2.1]: https://github.com/recyclarr/recyclarr/compare/v2.2.0...v2.2.1 [2.2.0]: https://github.com/recyclarr/recyclarr/compare/v2.1.2...v2.2.0 [2.1.2]: https://github.com/recyclarr/recyclarr/compare/v2.1.1...v2.1.2 [2.1.1]: https://github.com/recyclarr/recyclarr/compare/v2.1.0...v2.1.1 [2.1.0]: https://github.com/recyclarr/recyclarr/compare/v2.0.2...v2.1.0 [2.0.2]: https://github.com/recyclarr/recyclarr/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/recyclarr/recyclarr/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/recyclarr/recyclarr/compare/v1.8.2...v2.0.0 [1.8.2]: https://github.com/recyclarr/recyclarr/compare/v1.8.1...v1.8.2 [1.8.1]: https://github.com/recyclarr/recyclarr/compare/v1.8.0...v1.8.1 [1.8.0]: https://github.com/recyclarr/recyclarr/compare/v1.7.0...v1.8.0 [1.7.0]: https://github.com/recyclarr/recyclarr/compare/v1.6.6...v1.7.0 [1.6.6]: https://github.com/recyclarr/recyclarr/compare/v1.6.5...v1.6.6 [1.6.5]: https://github.com/recyclarr/recyclarr/compare/v1.6.4...v1.6.5 [1.6.4]: https://github.com/recyclarr/recyclarr/compare/v1.6.3...v1.6.4 [1.6.3]: https://github.com/recyclarr/recyclarr/compare/v1.6.2...v1.6.3 [1.6.2]: https://github.com/recyclarr/recyclarr/compare/v1.6.1...v1.6.2 [1.6.1]: https://github.com/recyclarr/recyclarr/compare/v1.6.0...v1.6.1 [1.6.0]: https://github.com/recyclarr/recyclarr/compare/v1.5.1...v1.6.0 [1.5.1]: https://github.com/recyclarr/recyclarr/compare/v1.5.0...v1.5.1 [1.5.0]: https://github.com/recyclarr/recyclarr/compare/v1.4.2...v1.5.0 [1.4.2]: https://github.com/recyclarr/recyclarr/compare/v1.4.1...v1.4.2 [1.4.1]: https://github.com/recyclarr/recyclarr/compare/v1.4.0...v1.4.1 [1.4.0]: https://github.com/recyclarr/recyclarr/compare/v1.3.3...v1.4.0 [1.3.3]: https://github.com/recyclarr/recyclarr/compare/v1.3.2...v1.3.3 [1.3.2]: https://github.com/recyclarr/recyclarr/compare/v1.3.1...v1.3.2 [1.3.1]: https://github.com/recyclarr/recyclarr/compare/v1.3.0...v1.3.1 [1.3.0]: https://github.com/recyclarr/recyclarr/compare/v1.2.0...v1.3.0 [1.2.0]: https://github.com/recyclarr/recyclarr/compare/v1.1.0...v1.2.0 [1.1.0]: https://github.com/recyclarr/recyclarr/compare/v1.0.0...v1.1.0 [1.0.0]: https://github.com/recyclarr/recyclarr/compare/v0.1.0...v1.0.0