Append transcoding logs to scan logs instead of overwriting

This commit is contained in:
Julian Mutter 2022-09-16 12:53:38 +02:00
parent a3776cc917
commit f87ea7e9d1

View File

@ -198,7 +198,7 @@ def transcode_series(dvd: Dvd):
(season, episodes) = season_episodes
if len(episodes) != len(title_numbers):
dvd.append_line_to_logfile(
f"{dvd} should have {len(episodes)} episodes, but handbrake found {len(title_numbers)}. Maybe you need to adjust 'MIN_EPISODES_DURATION_SECONDS'?"
f"{dvd} should have {len(episodes)} episodes, but {len(title_numbers)} were found. Maybe you need to adjust 'MIN_EPISODES_DURATION_SECONDS'?"
)
return False
@ -228,7 +228,7 @@ def transcode_episode(dvd: Dvd, season, episode, title_number):
video_file_name = episode_title + OUT_VIDEO_FORMAT
output_file = os.path.join(TMP_DIR, video_file_name)
with open(dvd.log_file, "w") as log_file:
with open(dvd.log_file, "a") as log_file:
proc = subprocess.run(
dvd.transcode_command_args_without_title_number(output_file)
+ [