From ab37e2dbf8c6a047efaf3b246c396ce3dc05f494 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sat, 9 Nov 2024 21:07:42 +1300 Subject: [PATCH] requests requests no data --- yt_dlp_plugins/extractor/_ytse/downloader/sabr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py b/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py index de3d62d..fe6a95c 100644 --- a/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py +++ b/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py @@ -169,6 +169,8 @@ def download(self): raise DownloadError('No data found in three consecutive requests') break # stream finished? requests_no_data += 1 + else: + requests_no_data = 0 current_buffered_ranges = [initialized_format.buffered_ranges[-1] for initialized_format in self.initialized_formats.values() if initialized_format.buffered_ranges]