fix: Add season folder support to _predict_filepath
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
title: "애니 다운로더"
|
||||
version: "0.4.10"
|
||||
version: "0.4.11"
|
||||
package_name: "anime_downloader"
|
||||
developer: "projectdx"
|
||||
description: "anime downloader"
|
||||
|
||||
@@ -1327,6 +1327,13 @@ class LogicAniLife(AnimeModuleBase):
|
||||
else:
|
||||
folder_name = content_title_clean if match else AniUtil.change_text_for_use_filename(title)
|
||||
savepath = os.path.join(savepath, folder_name)
|
||||
|
||||
# Check season folder option
|
||||
if P.ModelSetting.get_bool("anilife_auto_make_season_folder"):
|
||||
season_val = season if match else 1
|
||||
savepath = os.path.join(savepath, "Season %s" % int(season_val))
|
||||
logger.debug(f"[EarlyCheck] With season folder: {savepath}")
|
||||
|
||||
|
||||
# Use glob to find any matching file
|
||||
full_pattern = os.path.join(savepath, filename_pattern)
|
||||
|
||||
Reference in New Issue
Block a user