Skip to content

Commit

Permalink
Print to console
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Aug 25, 2024
1 parent bc940fd commit 25e523a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 25e523a

Please sign in to comment.