mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
time limit
This commit is contained in:
parent
659312a0bb
commit
89cf6aabf2
1 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ class TorrentScrape:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.url = "https://knaben.org/search/coast%20to%20coast%20am/0/1/date"
|
self.url = "https://knaben.org/search/coast%20to%20coast%20am/0/1/date"
|
||||||
self.episodes = []
|
self.episodes = []
|
||||||
self.download_amount = 5
|
self.download_amount: int = 5
|
||||||
self.last_download = None
|
self.last_download = None
|
||||||
self.last_download_link = None
|
self.last_download_link = None
|
||||||
self.headers = {
|
self.headers = {
|
||||||
|
|
@ -133,12 +133,12 @@ class Qbittorrent:
|
||||||
|
|
||||||
for link in links:
|
for link in links:
|
||||||
try:
|
try:
|
||||||
|
# "/" added for creating subdir so abs finds properly
|
||||||
self.download_path = self.download_path + "/"
|
self.download_path = self.download_path + "/"
|
||||||
torrent.torrents_add(urls=link, save_path=self.download_path)
|
|
||||||
torrent.torrents_add(
|
torrent.torrents_add(
|
||||||
urls=link,
|
urls=link, save_path=self.download_path, seeding_time_limit=1
|
||||||
save_path=self.download_path,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
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