Append transcoding logs to scan logs instead of overwriting
This commit is contained in:
parent
a3776cc917
commit
f87ea7e9d1
@ -198,7 +198,7 @@ def transcode_series(dvd: Dvd):
|
|||||||
(season, episodes) = season_episodes
|
(season, episodes) = season_episodes
|
||||||
if len(episodes) != len(title_numbers):
|
if len(episodes) != len(title_numbers):
|
||||||
dvd.append_line_to_logfile(
|
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
|
return False
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ def transcode_episode(dvd: Dvd, season, episode, title_number):
|
|||||||
video_file_name = episode_title + OUT_VIDEO_FORMAT
|
video_file_name = episode_title + OUT_VIDEO_FORMAT
|
||||||
output_file = os.path.join(TMP_DIR, video_file_name)
|
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(
|
proc = subprocess.run(
|
||||||
dvd.transcode_command_args_without_title_number(output_file)
|
dvd.transcode_command_args_without_title_number(output_file)
|
||||||
+ [
|
+ [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user