39775a82ef
Newer qBittorrent renamed its session cookie from "SID" to "QBT_SID" / "QBT_SID_<port>" (the diagnostic revealed cookies=['QBT_SID_5080']). The client only accepted "SID", so a valid login (cookie present in the jar) was reported as "Unexpected response". Re-entering correct credentials never helped because login was succeeding all along. Treat any cookie named "SID" OR starting with "QBT_SID" as the session cookie, checked in both the parsed jar and the raw Set-Cookie header. qBittorrent only sets this cookie on a valid login, so it stays authoritative. Diagnostic message updated to mention both names. New regression test covers the QBT_SID_<port> case. 388/388 backend tests pass; ruff clean.