From c303fac79cfe14934c03113bc4628d31488b544c Mon Sep 17 00:00:00 2001 From: death916 Date: Thu, 29 Jan 2026 02:51:27 -0800 Subject: [PATCH] subdir for downloads --- src/c2cscrape.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c2cscrape.py b/src/c2cscrape.py index 85940ea..56233ab 100644 --- a/src/c2cscrape.py +++ b/src/c2cscrape.py @@ -94,6 +94,7 @@ class Qbittorrent: self.password = "" self.host = "localhost" self.port = 8080 + self.download_path: str = "" def get_credentials(self): """Get qbittorrent credentials from .env file""" @@ -132,6 +133,7 @@ class Qbittorrent: for link in links: try: + self.download_path = self.download_path + "/" torrent.torrents_add(urls=link, save_path=self.download_path) logging.info(f"Added torrent {link} to qbittorrent") except Exception as e: