fix: support v2 and hybrid qBittorrent identities
This commit is contained in:
@@ -101,6 +101,12 @@ def command_mark_stalled(args: argparse.Namespace) -> None:
|
||||
deadline = time.monotonic() + args.timeout
|
||||
last = None
|
||||
while time.monotonic() < deadline:
|
||||
current = get_json(f"{CONTROL}/jobs/{args.job_id}")
|
||||
if current["state"] == "JOB_STATE_STALLED":
|
||||
args.state = "JOB_STATE_STALLED"
|
||||
args.minimum_sequence = 1
|
||||
command_wait_state(args)
|
||||
return
|
||||
outcomes = post_json(f"{CONTROL}/scheduler/advance", {})
|
||||
last = outcomes
|
||||
if any(
|
||||
|
||||
Reference in New Issue
Block a user