From ad19fd94bed72ed089526e6ed480167e5e504640 Mon Sep 17 00:00:00 2001 From: jlw4049 Date: Mon, 22 Jul 2024 19:20:12 -0400 Subject: [PATCH] fix: improper exit code due to variable typo feat: v0.1.2 --- dv_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dv_check.py b/dv_check.py index 6de76bd..e48af8e 100644 --- a/dv_check.py +++ b/dv_check.py @@ -6,7 +6,7 @@ from pathlib import Path from pymediainfo import MediaInfo from typing import Optional, Tuple -__version__ = "0.1.1" +__version__ = "0.1.2" def exit_print(message: Optional[str] = "", exit_code: Optional[int] = 0) -> None: @@ -249,7 +249,7 @@ if __name__ == "__main__": if existing_data: el_type = existing_data.get("EL") if el_type: - if el_type != "FEL" and create_fel: + if el_type != "FEL" and create_fel_mkv: exit_print("EL layer is not FEL, select a different template", 1) print(f"Data loaded, EL type: {el_type}") if el_type == "FEL": @@ -266,7 +266,7 @@ if __name__ == "__main__": else: rpu = read_rpu(file_input, ffmpeg, dovi_tool, working_dir) if rpu: - if rpu != "FEL" and create_fel: + if rpu != "FEL" and create_fel_mkv: exit_print("EL layer is not FEL, select a different template", 1) if rpu == "MEL": exit_print("EL layer is MEL, no processing needed", 0)