mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
dont save in individual folders
This commit is contained in:
parent
8efe4a6ee8
commit
872686e9d5
1 changed files with 3 additions and 1 deletions
|
|
@ -94,6 +94,8 @@ class Qbittorrent:
|
||||||
self.password = ""
|
self.password = ""
|
||||||
self.host = "localhost"
|
self.host = "localhost"
|
||||||
self.port = 8080
|
self.port = 8080
|
||||||
|
self.content_layout = "NoSubfolder"
|
||||||
|
|
||||||
|
|
||||||
def get_credentials(self):
|
def get_credentials(self):
|
||||||
"""Get qbittorrent credentials from .env file"""
|
"""Get qbittorrent credentials from .env file"""
|
||||||
|
|
@ -132,7 +134,7 @@ class Qbittorrent:
|
||||||
|
|
||||||
for link in links:
|
for link in links:
|
||||||
try:
|
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")
|
logging.info(f"Added torrent {link} to qbittorrent")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Error adding torrent {link} to qbittorrent: {e}")
|
logging.error(f"Error adding torrent {link} to qbittorrent: {e}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue