Global timeout can be set in the config and UI.

Downloaders can specify a process timeout.
This commit is contained in:
Roland 2022-06-14 19:51:13 -06:00
parent 0179beebea
commit 3efd47d004
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 105 additions and 20 deletions

View file

@ -231,7 +231,7 @@ class VideoDownloader(Downloader, ABC):
video_path, entry = self.prepare_filename(url, out_dir)
# Do the real download.
file_name_format = '%(uploader)s_%(upload_date)s_%(id)s_%(title)s.%(ext)s'
cmd = [
cmd = (
str(YT_DLP_BIN),
'-cw', # Continue downloads, do not clobber existing files.
'-f', PREFERRED_VIDEO_FORMAT,
@ -243,7 +243,7 @@ class VideoDownloader(Downloader, ABC):
'--merge-output-format', PREFERRED_VIDEO_EXTENSION,
'-o', file_name_format,
url,
]
)
return_code, logs = self.process_runner(url, cmd, out_dir)
if return_code != 0: