1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-18 02:59:31 +00:00
This commit is contained in:
Jille Timmermans 2024-04-29 12:40:49 +07:00 committed by GitHub
commit 66a8be828d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,7 @@ from __future__ import unicode_literals
import re
import binascii
import time
try:
from Crypto.Cipher import AES
can_decrypt_frag = True
@ -159,6 +160,8 @@ class HlsFD(FragmentFD):
count += 1
if count <= fragment_retries:
self.report_retry_fragment(err, frag_index, count, fragment_retries)
if err.code == 429:
time.sleep(10.0)
if count > fragment_retries:
if skip_unavailable_fragments:
i += 1