diff --git a/info.yaml b/info.yaml index a8ca526..60c1c75 100644 --- a/info.yaml +++ b/info.yaml @@ -1,5 +1,5 @@ title: "애니 다운로더" -version: "0.6.5" +version: "0.6.6" package_name: "anime_downloader" developer: "projectdx" description: "anime downloader" diff --git a/mod_ohli24.py b/mod_ohli24.py index 2af3bba..9f2ccbe 100644 --- a/mod_ohli24.py +++ b/mod_ohli24.py @@ -2671,6 +2671,14 @@ class Ohli24QueueEntity(AnimeQueueEntity): def download_completed(self) -> None: super().download_completed() logger.debug("download completed.......!!") + + # Verify file actually exists before marking as completed + if not self.filepath or not os.path.exists(self.filepath): + logger.warning(f"[DB_COMPLETE] File does not exist after download_completed: {self.filepath}") + # Call download_failed instead + self.download_failed("File not found after download") + return + logger.debug(f"[DB_COMPLETE] Looking up entity by ohli24_id: {self.info.get('_id')}") db_entity = ModelOhli24Item.get_by_ohli24_id(self.info["_id"]) logger.debug(f"[DB_COMPLETE] Found db_entity: {db_entity}")