feat 动漫一级分类

This commit is contained in:
thsrite
2023-08-28 10:01:14 +08:00
parent dadad74085
commit b7e9e8ee21
4 changed files with 17 additions and 3 deletions

View File

@@ -113,12 +113,18 @@ class DownloadChain(ChainBase):
if _media.type == MediaType.MOVIE:
download_dir = Path(settings.DOWNLOAD_MOVIE_PATH or settings.DOWNLOAD_PATH) / _media.category
else:
download_dir = Path(settings.DOWNLOAD_TV_PATH or settings.DOWNLOAD_PATH) / _media.category
if settings.DOWNLOAD_ANIME_PATH and _media.category and str(_media.category) == '动漫':
download_dir = Path(settings.DOWNLOAD_ANIME_PATH)
else:
download_dir = Path(settings.DOWNLOAD_TV_PATH or settings.DOWNLOAD_PATH) / _media.category
elif _media:
if _media.type == MediaType.MOVIE:
download_dir = Path(settings.DOWNLOAD_MOVIE_PATH or settings.DOWNLOAD_PATH)
else:
download_dir = Path(settings.DOWNLOAD_TV_PATH or settings.DOWNLOAD_PATH)
if settings.DOWNLOAD_ANIME_PATH and _media.category and str(_media.category) == '动漫':
download_dir = Path(settings.DOWNLOAD_ANIME_PATH)
else:
download_dir = Path(settings.DOWNLOAD_TV_PATH or settings.DOWNLOAD_PATH)
else:
download_dir = Path(settings.DOWNLOAD_PATH)
else: