From 25e523a459a32cbad1fd3faf138c27d8710b0f42 Mon Sep 17 00:00:00 2001 From: Audionut Date: Sun, 25 Aug 2024 11:22:14 +1000 Subject: [PATCH] Print to console --- src/clients.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/clients.py b/src/clients.py index 3ff727dab..dd1dd797b 100644 --- a/src/clients.py +++ b/src/clients.py @@ -162,9 +162,9 @@ async def search_qbit_for_torrent(self, meta, client): torrent_storage_dir = client.get('torrent_storage_dir', None) if meta['debug']: if torrent_storage_dir: - print(f"Torrent storage directory found: {torrent_storage_dir}") + console.print(f"Torrent storage directory found: {torrent_storage_dir}") else: - print("No torrent storage directory found.") + console.print("No torrent storage directory found.") if torrent_storage_dir == None and client.get("torrent_client", None) != "watch": console.print(f"[bold red]Missing torrent_storage_dir for {self.config['DEFAULT']['default_torrent_client']}") return None @@ -185,9 +185,9 @@ async def search_qbit_for_torrent(self, meta, client): if local_path.lower() in meta['path'].lower() and local_path.lower() != remote_path.lower(): remote_path_map = True if meta['debug']: - print(f"Remote path mapping found!") - print(f"Local path: {local_path}") - print(f"Remote path: {remote_path}") + console.print(f"Remote path mapping found!") + console.print(f"Local path: {local_path}") + console.print(f"Remote path: {remote_path}") torrents = qbt_client.torrents.info() for torrent in torrents: