From e75e34dadd126dee00239443ae81894dbb53b253 Mon Sep 17 00:00:00 2001 From: projectdx Date: Wed, 7 Jan 2026 00:32:15 +0900 Subject: [PATCH] Fix: Null check for self.queue in setting_save_after --- info.yaml | 2 +- mod_ohli24.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/info.yaml b/info.yaml index 08e8623..7780f81 100644 --- a/info.yaml +++ b/info.yaml @@ -1,5 +1,5 @@ title: "애니 다운로더" -version: "0.6.2" +version: "0.6.3" package_name: "anime_downloader" developer: "projectdx" description: "anime downloader" diff --git a/mod_ohli24.py b/mod_ohli24.py index e4ab5f6..c3a7451 100644 --- a/mod_ohli24.py +++ b/mod_ohli24.py @@ -1221,9 +1221,11 @@ class LogicOhli24(AnimeModuleBase): return ret def setting_save_after(self, change_list: List[str]) -> None: - """설정 저장 후 처리.""" - if self.queue.get_max_ffmpeg_count() != P.ModelSetting.get_int("ohli24_max_ffmpeg_process_count"): - self.queue.set_max_ffmpeg_count(P.ModelSetting.get_int("ohli24_max_ffmpeg_process_count")) + \"\"\"설정 저장 후 처리.\"\"\" + if self.queue is None: + return + if self.queue.get_max_ffmpeg_count() != P.ModelSetting.get_int(\"ohli24_max_ffmpeg_process_count\"): + self.queue.set_max_ffmpeg_count(P.ModelSetting.get_int(\"ohli24_max_ffmpeg_process_count\")) def scheduler_function(self) -> None: """스케줄러 함수 - 자동 다운로드 처리."""