Skip to content

Commit

Permalink
Update commands in disc.py to include conditional --noscan flag
Browse files Browse the repository at this point in the history
Include --noscan flag in MakeMKV commands if 'disc:' is not in source to optimize processing.
  • Loading branch information
cbusillo committed Jul 3, 2024
1 parent 6331bde commit 663d662
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bd_to_avp/modules/disc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ def get_disc_and_mvc_video_info() -> DiscInfo:
disc_info.is_interlaced = True
return disc_info

command = [config.MAKEMKVCON_PATH, "--robot", "info", source]
command = [
config.MAKEMKVCON_PATH,
"--robot",
"--noscan" if "disc:" not in source else None,
"info",
source,
]
output = run_command(command, "Get disc and MVC video properties")

disc_name, titles = parse_makemkv_output(output)
Expand Down Expand Up @@ -119,6 +125,7 @@ def rip_disc_to_mkv(output_folder: Path, disc_info: DiscInfo, language_code: str
command = [
config.MAKEMKVCON_PATH,
f"--profile={custom_profile_path}",
"--noscan" if "disc:" not in source else None,
"mkv",
source,
disc_info.main_title_number,
Expand Down

0 comments on commit 663d662

Please sign in to comment.