fix: improper exit code due to variable typo

feat: v0.1.2
This commit is contained in:
jlw4049 2024-07-22 19:20:12 -04:00
parent a0014bfe7b
commit ad19fd94be

@ -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)