This commit is contained in:
EstrellaXD
2022-06-03 20:36:21 +08:00
parent f4617aabee
commit 550c82d181
2 changed files with 7 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class DownloadClient:
os.path.join(
settings.download_path,
re.sub(settings.rule_name_re, " ", bangumi_name).strip(),
f"S0{season}",
season,
)
),
}

View File

@@ -1,4 +1,6 @@
import os.path
import re
import requests
from qbittorrentapi import Client
from bs4 import BeautifulSoup
@@ -35,7 +37,10 @@ class FullSeasonGet:
self.client.torrents_add(
urls=torrent["url"],
save_path=str(
os.path.join(settings.download_path, self.bangumi_name, self.season)
os.path.join(
settings.download_path,
re.sub(settings.rule_name_re, " ", self.bangumi_name),
self.season)
),
category="Bangumi",
)