fix(cli): Do not display CFs with no trash IDs

Fixes #229
pull/231/head
Robert Dailey 2 months ago
parent 75a87707bf
commit fe6eb40c6a

@ -18,13 +18,15 @@ changes you may need to make.
- **BREAKING**: The app data directory on OSX has changed. It now lives at `~/Library/Application - **BREAKING**: The app data directory on OSX has changed. It now lives at `~/Library/Application
Support/recyclarr` instead of `~/.config/recyclarr`. Users will need to run `recyclarr migrate` to Support/recyclarr` instead of `~/.config/recyclarr`. Users will need to run `recyclarr migrate` to
move the directory (or do it manually). move the directory (or do it manually).
- Slightly improved display of version number when using `-v` option. - CLI: Slightly improved display of version number when using `-v` option.
### Fixed ### Fixed
- Print more useful diagnostics when there's a connectivity problem to a service (e.g. incorrect - YAML: Print more useful diagnostics when there's a connectivity problem to a service (e.g.
`base_url`). incorrect `base_url`).
- Regression that prevented basic validation of `base_url` & `api_key`. - YAML: Regression that prevented basic validation of `base_url` & `api_key`.
- CLI: CFs with no Trash ID will no longer be displayed when running the `list custom-formats`
command.
## [6.0.2] - 2023-10-20 ## [6.0.2] - 2023-10-20

@ -53,6 +53,7 @@ public class CustomFormatDataLister(IAnsiConsole console, ICustomFormatGuideServ
} }
var categories = guide.GetCustomFormatData(serviceType) var categories = guide.GetCustomFormatData(serviceType)
.Where(x => !string.IsNullOrWhiteSpace(x.TrashId))
.OrderBy(x => x.Name) .OrderBy(x => x.Name)
.ToLookup(x => x.Category) .ToLookup(x => x.Category)
.OrderBy(x => x.Key); .OrderBy(x => x.Key);

Loading…
Cancel
Save