Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scdl/scdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,16 @@ def build_ffmpeg_encoding_args(
"0.1",
]

reconnect_args = [
["-reconnect", "1"],
["-reconnect_streamed", "1"],
["-reconnect_max_retries", "10"],
["-reconnect_delay_total_max", "60"],
]
for rargs in reconnect_args:
if rargs[0] in supported:
ffmpeg_args += rargs

ffmpeg_args += [
# User provided arguments
*args,
Expand Down
Loading