Skip to content

Commit

Permalink
set max_wait to 600 secondes
Browse files Browse the repository at this point in the history
with this change, hopefully no livestreaming will be missed.

600 seconds are long enough so that:

a) less requests to YouTube server
b) unscheduled livestream will get caught as well if the livestream lasts
longer than 600 seconds
  • Loading branch information
harupong committed Apr 17, 2023
1 parent 86a3fda commit 87d2a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytpodgen/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def download(title, liveurl):
# best audio-only format if available,
# and if not, fall back to best format that contains both video and audio
"format": "bestaudio/best",
"wait_for_video": (60, 60),
"wait_for_video": (60, 600),
"outtmpl": f"{title}_%(epoch>%Y%m%d%H%M%S)s_%(id)s",
"live_from_start": live_from_start,
"postprocessors": [
Expand Down

0 comments on commit 87d2a46

Please sign in to comment.