From b1c0e11237a1e68bc36cf1f4291f198d0de7bebe Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sun, 10 Nov 2024 19:30:31 +1300 Subject: [PATCH] assume end of video when no data returned --- yt_dlp_plugins/extractor/_ytse/downloader/sabr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py b/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py index 1cc0bc4..19427b8 100644 --- a/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py +++ b/yt_dlp_plugins/extractor/_ytse/downloader/sabr.py @@ -184,7 +184,7 @@ def download(self): if not self._request_had_data: if requests_no_data >= 2: if self.client_abr_state.start_time_ms < self.total_duration_ms: - raise DownloadError('No data found in three consecutive requests') + self._logger.warning('No data found in three consecutive requests - assuming end of video') break # stream finished? requests_no_data += 1 else: