Skip to content

Commit

Permalink
assume end of video when no data returned
Browse files Browse the repository at this point in the history
  • Loading branch information
coletdjnz committed Nov 10, 2024
1 parent cf9bb43 commit b1c0e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp_plugins/extractor/_ytse/downloader/sabr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b1c0e11

Please sign in to comment.