This commit is contained in:
EstrellaXD
2023-06-04 12:48:34 +08:00
parent df30a55c79
commit b1fc759366
2 changed files with 4 additions and 3 deletions

View File

@@ -80,10 +80,11 @@ class QbDownloader:
def torrents_info(self, status_filter, category, tag=None):
return self._client.torrents_info(status_filter=status_filter, category=category, tag=tag)
def torrents_add(self, urls, save_path, category):
def torrents_add(self, urls, save_path, category, torrent_files=None):
return self._client.torrents_add(
is_paused=False,
urls=urls,
torrent_files=torrent_files,
save_path=save_path,
category=category,
use_auto_torrent_management=False

View File

@@ -18,8 +18,8 @@ RULES = [
]
SUBTITLE_LANG = {
"zh-tw": ["TC", "CHT", "", "zh-tw"],
"zh": ["SC", "CHS", "", "zh"],
"zh-tw": ["TC", "CHT", "cht", "", "zh-tw"],
"zh": ["SC", "CHS", "chs", "", "zh"],
}