subdir for downloads

This commit is contained in:
death916 2026-01-29 02:51:27 -08:00
parent 8efe4a6ee8
commit c303fac79c

View file

@ -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: