[fd] Fix playback wait time for ffmpeg downloads (#15066)

Authored by: bashonly
This commit is contained in:
bashonly 2025-11-16 12:15:16 -06:00 committed by GitHub
parent af285016d2
commit 23f1ab3469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'