From 929b8fc1bf8f014323552219144fe4820692446e Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Wed, 2 Oct 2024 05:42:58 -0500 Subject: [PATCH] fix(commands): add auth logout to qb --- qbtools/commands/orphaned.py | 1 + qbtools/commands/prune.py | 1 + qbtools/commands/tagging.py | 1 + 3 files changed, 3 insertions(+) diff --git a/qbtools/commands/orphaned.py b/qbtools/commands/orphaned.py index b430827..bf83be1 100644 --- a/qbtools/commands/orphaned.py +++ b/qbtools/commands/orphaned.py @@ -77,6 +77,7 @@ def cleanup_dir(folder_path, owned_files): # Delete orphaned files on disk not owned by qBittorrent cleanup_dir(completed_dir, qbittorrent_items) + client.auth_log_out() def add_arguments(subparser): diff --git a/qbtools/commands/prune.py b/qbtools/commands/prune.py index d9320c0..bb4acc0 100644 --- a/qbtools/commands/prune.py +++ b/qbtools/commands/prune.py @@ -52,6 +52,7 @@ def __init__(args, logger): t.delete(delete_files=args.with_data) logger.info(f"Deleted {len(filtered_torrents)} torrents") + client.auth_log_out() def add_arguments(subparser): diff --git a/qbtools/commands/tagging.py b/qbtools/commands/tagging.py index a0b6294..919294d 100755 --- a/qbtools/commands/tagging.py +++ b/qbtools/commands/tagging.py @@ -218,6 +218,7 @@ def __init__(args, logger): logger.info( f"Completed tagging {len(unique_hashes)} torrents with {len(tag_hashes)} tags" ) + client.auth_log_out() def add_arguments(subparser):