Skip to content

Can't have empty category for qBittorrent #3158

Description

@noah-guillory

Describe the bug
Before version 3.0.1.507, you were able to leave the Category field in the qBittorrent settings empty. Now there you get an error saying

"Can not contain '', '//', or start/end with '/'"

Screenshots
image

Logs
Link to debug or trace log files.
Corresponding validation error message in logs

image

System Information

  • Sonarr Version: 3.0.1.508
  • Operating System: Debian Docker Container (using linuxserver/sonarr:preview container)
  • mono (macOS/Linux) Version: 5.20.1.19

UI Bugs:
N/A

Additional context
I'm not that familiar with Sonarr's codebase but from a glance at the commit that added support for post-import labels, it seems that this issue is related to this check.

RuleFor(c => c.TvCategory).Matches("^[^/\\\\](((?!//)[^\\\\])*[^/\\\\])?$").WithMessage("Can not contain '\\', '//', or start/end with '/'");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions