Route disguised HLS segments natively

This commit is contained in:
Dymas
2026-09-05 21:13:41 +02:00
parent a29affd9be
commit a9549cf882
5 changed files with 36 additions and 5 deletions
+12
View File
@@ -4534,6 +4534,18 @@ seg-3.ts
)
)
def test_hls_segments_need_native_download_for_snapcdn_disguised_segments(self):
self.assertTrue(
provider_downloader.hls_segments_need_native_download(
[{"url": "https://shard-102.snapcdn.top/anime/show/episode/seg-f1-00176.jpg"}]
)
)
self.assertTrue(
provider_downloader.hls_segments_need_native_download(
[{"url": "https://cdn.example/video/seg-f1-00170.js"}]
)
)
def test_fetch_bytes_with_retries_recovers_from_segment_rate_limit(self):
error = urllib.error.HTTPError(
"https://cdn.example/video/raw-segment",