mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-14 02:20:53 +08:00
fix bugs
This commit is contained in:
@@ -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,
|
||||
)
|
||||
),
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user