diff --git a/handlers/anime_handler.py b/handlers/anime_handler.py index aa0f15d..108e60f 100644 --- a/handlers/anime_handler.py +++ b/handlers/anime_handler.py @@ -32,7 +32,7 @@ async def handle_anime_message( async with message.channel.typing(): try: - if action in ("list", "scan"): + if action in ("list", "scan", "schedule"): # NAS 현황 조회 from tools.nas_scanner import NasScanner scanner = NasScanner() @@ -91,6 +91,19 @@ async def handle_anime_message( mode = parsed.get("download_mode", "auto") episode = parsed.get("episode") result = await pipeline.download(title, mode=mode, episode=episode) + elif action == "sub_only": + # 자막만 다운로드 + episode = parsed.get("episode") + if title: + result = await pipeline.download(title, mode="sub_only", episode=episode) + else: + # 전체 자막 최신화 + result = await pipeline.batch_download(mode="sub_only") + elif action == "video_only" and title: + # 영상만 다운로드 + episode = parsed.get("episode") + result = await pipeline.download(title, mode="video_only", episode=episode) + elif action == "status": status = await pipeline.get_status() if not status: