From 89cf6aabf2973753c303c780755a836d6512fe28 Mon Sep 17 00:00:00 2001 From: death916 Date: Thu, 29 Jan 2026 04:14:47 -0800 Subject: [PATCH] time limit --- src/c2cscrape.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/c2cscrape.py b/src/c2cscrape.py index 6758045..9f7bc26 100644 --- a/src/c2cscrape.py +++ b/src/c2cscrape.py @@ -19,7 +19,7 @@ class TorrentScrape: def __init__(self): self.url = "https://knaben.org/search/coast%20to%20coast%20am/0/1/date" self.episodes = [] - self.download_amount = 5 + self.download_amount: int = 5 self.last_download = None self.last_download_link = None self.headers = { @@ -133,12 +133,12 @@ class Qbittorrent: for link in links: try: + # "/" added for creating subdir so abs finds properly self.download_path = self.download_path + "/" - torrent.torrents_add(urls=link, save_path=self.download_path) torrent.torrents_add( - urls=link, - save_path=self.download_path, + urls=link, save_path=self.download_path, seeding_time_limit=1 ) + logging.info(f"Added torrent {link} to qbittorrent") except Exception as e: logging.error(f"Error adding torrent {link} to qbittorrent: {e}")