From 872686e9d55789986f685503695a3622aafda7e6 Mon Sep 17 00:00:00 2001 From: death916 Date: Wed, 24 Dec 2025 10:00:38 -0800 Subject: [PATCH] dont save in individual folders --- src/c2cscrape.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c2cscrape.py b/src/c2cscrape.py index 85940ea..a43698e 100644 --- a/src/c2cscrape.py +++ b/src/c2cscrape.py @@ -94,6 +94,8 @@ class Qbittorrent: self.password = "" self.host = "localhost" self.port = 8080 + self.content_layout = "NoSubfolder" + def get_credentials(self): """Get qbittorrent credentials from .env file""" @@ -132,7 +134,7 @@ class Qbittorrent: for link in links: try: - torrent.torrents_add(urls=link, save_path=self.download_path) + torrent.torrents_add(urls=link, save_path=self.download_path, content_layout=self.content_layout) logging.info(f"Added torrent {link} to qbittorrent") except Exception as e: logging.error(f"Error adding torrent {link} to qbittorrent: {e}")