This pull request improves the qBittorrent authentication handling in the DownloadService by allowing the service to detect when authentication is disabled and proceed accordingly, instead of failing outright. The changes add better logging and error handling to make the integration with qBittorrent more robust and informative.
qBittorrent Authentication Handling:
- The login process now checks if authentication is disabled by detecting a 403 Forbidden response, and proceeds without authentication if so, instead of throwing an exception. [1] [2]
- Enhanced logging provides more detailed information about authentication success, failure, and when authentication is disabled. [1] [2]
Queue Retrieval Logic:
- The queue retrieval method (
GetQBittorrentQueueAsync) now attempts to get torrent info even if authentication is disabled, improving compatibility with qBittorrent instances that do not require login.
Automated canary build