fix: settings has no download_path anymore

This commit is contained in:
Bluefissure
2023-03-14 18:36:59 +00:00
parent 278d23f3b9
commit b9019e2265
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class FullSeasonGet:
download_info = {
"url": torrent.torrent_link,
"save_path": os.path.join(
settings.download_path,
settings.downloader.path,
data["official_title"],
f"Season {data['season']}")
}

View File

@@ -45,7 +45,7 @@ class RePath:
path = rules.get(rule).savePath
must_contain = rules.get(rule).mustContain
season, folder_name = self.analyse_path(path)
new_path = PurePath(settings.download_path, folder_name, f"Season {season}").__str__()
new_path = PurePath(settings.downloader.path, folder_name, f"Season {season}").__str__()
all_rule.append(RuleInfo(rule, must_contain, season, folder_name, new_path))
return all_rule