mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[fd] Fix playback wait time for ffmpeg downloads (#15066)
Authored by: bashonly
This commit is contained in:
parent
af285016d2
commit
23f1ab3469
1 changed files with 2 additions and 1 deletions
|
|
@ -461,7 +461,8 @@ class FileDownloader:
|
|||
min_sleep_interval = self.params.get('sleep_interval') or 0
|
||||
max_sleep_interval = self.params.get('max_sleep_interval') or 0
|
||||
|
||||
if available_at := info_dict.get('available_at'):
|
||||
requested_formats = info_dict.get('requested_formats') or [info_dict]
|
||||
if available_at := max(f.get('available_at') or 0 for f in requested_formats):
|
||||
forced_sleep_interval = available_at - int(time.time())
|
||||
if forced_sleep_interval > min_sleep_interval:
|
||||
sleep_note = 'as required by the site'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue