mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-07-18 20:51:02 +08:00
qBittorrent >= 5.2 answers a successful login with HTTP 204 and an empty body instead of 200 + 'Ok.', so every login was treated as bad credentials. Accept both variants and keep 200 + 'Fails.' as a failure. Also close the httpx.AsyncClient when auth() fails: DownloadClient.__aenter__ raises before __aexit__ can run, so each failed connect leaked a client and its connection pool (qb and aria2). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014w1Z6Nxy6XTRgkFXqPr9Zh