Compare commits
2 Commits
055eb7b04d
...
a7bc9c6257
Author | SHA1 | Date | |
---|---|---|---|
a7bc9c6257 | |||
7306e018a6 |
@ -12,3 +12,4 @@ HANDBRAKE_AUDIO_LANG_LIST="de,en"
|
||||
OUT_VIDEO_FORMAT=".mkv"
|
||||
MIN_EPISODES_DURATION_MINUTES=30
|
||||
MAX_EPISODES_DURATION_MINUTES=90
|
||||
TRANSCODE_TIMEOUT_MINUTES=120
|
||||
|
@ -107,8 +107,7 @@ def transfer_ripped_dvd(ripped_dvd, destination_folder):
|
||||
subprocess.run(
|
||||
[
|
||||
"rsync",
|
||||
"-az",
|
||||
"-e ssh",
|
||||
"-rzP",
|
||||
"--remove-source-files",
|
||||
ripped_dvd,
|
||||
destination_folder,
|
||||
|
@ -37,6 +37,7 @@ HANDBRAKE_AUDIO_LANG_LIST = os.environ["HANDBRAKE_AUDIO_LANG_LIST"]
|
||||
OUT_VIDEO_FORMAT = os.environ["OUT_VIDEO_FORMAT"]
|
||||
MIN_EPISODES_DURATION_SECONDS = int(os.environ["MIN_EPISODES_DURATION_MINUTES"]) * 60
|
||||
MAX_EPISODES_DURATION_SECONDS = int(os.environ["MAX_EPISODES_DURATION_MINUTES"]) * 60
|
||||
TRANSCODE_TIMEOUT_SECONDS = int(os.environ["TRANSCODE_TIMEOUT_MINUTES"]) * 60
|
||||
|
||||
SERIES_TITLE_REGEX = r"S(\d+)[ _]?E(\d+)(-(\d+))?$"
|
||||
|
||||
@ -282,6 +283,7 @@ def run_and_log_handbrake(dvd: Dvd, command) -> bool:
|
||||
command,
|
||||
stderr=subprocess.STDOUT,
|
||||
stdout=log_file,
|
||||
timeout=TRANSCODE_TIMEOUT_SECONDS,
|
||||
)
|
||||
if proc.returncode != 0:
|
||||
return False
|
||||
@ -323,6 +325,7 @@ def find_series_titles(dvd: Dvd):
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=log_file,
|
||||
timeout=TRANSCODE_TIMEOUT_SECONDS,
|
||||
)
|
||||
|
||||
if proc.returncode != 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user