From 65b17ffbb9f59efd5f0895d9d73dce80572b1f1e Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 20 May 2025 16:06:41 -0500 Subject: [PATCH] do not return possibly zero timestamp Authored by: bashonly --- yt_dlp/extractor/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py index 580ffc6679..e4f2aec465 100644 --- a/yt_dlp/extractor/twitch.py +++ b/yt_dlp/extractor/twitch.py @@ -1059,7 +1059,7 @@ class TwitchStreamIE(TwitchVideosBaseIE): if self.get_param('live_from_start'): self.to_screen(f'{channel_name}: Extracting VOD to download live from start') entry = next(self._entries(channel_name, None, 'time'), None) - if entry and entry['timestamp'] >= (timestamp or float('inf')): + if entry and entry.pop('timestamp') >= (timestamp or float('inf')): return entry self.report_warning( 'Unable to extract the VOD associated with this livestream', video_id=channel_name)