fix problem in download.py when title has not been set

This commit is contained in:
Thomas Peetz
2025-08-18 13:42:58 +02:00
parent 65f5e4bb2e
commit ddc5797549
+3
View File
@@ -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")