dont save in individual folders

This commit is contained in:
death916 2025-12-24 10:00:38 -08:00
parent 8efe4a6ee8
commit 872686e9d5

View file

@ -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}")