From ddc579754947cc05b2624db9908d57336965efeb Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Mon, 18 Aug 2025 13:42:58 +0200 Subject: [PATCH] fix problem in download.py when title has not been set --- kontor-scripts/download.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kontor-scripts/download.py b/kontor-scripts/download.py index 74853a3..429395e 100644 --- a/kontor-scripts/download.py +++ b/kontor-scripts/download.py @@ -63,6 +63,9 @@ def __parse_output__(lines_list: list[str]) -> str | None: def is_file_downloaded(media_file: dict, dir: Path) -> FileStatus: file_name_as_title = f"{media_file['file_name']}" + if not file_name_as_title: + log.info("title has not been set - start download") + return FileStatus.UNKNOWN file_title = Path(dir, f"{file_name_as_title}.mp4") if file_title.exists(): log.info(f"{file_name_as_title} has been downloaded")