Merge 890f5a41b99d9227f260ab9891126c8ad7633c2a into da7223d4aa42ff9fc680b0951d043dd03cec2d30

This commit is contained in:
Jille Timmermans 2025-03-22 07:20:26 +08:00 committed by GitHub
commit 6d5de6e3c5
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