mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-12 13:54:28 +00:00
do not return possibly zero timestamp
Authored by: bashonly
This commit is contained in:
parent
b7e8d0cf48
commit
65b17ffbb9
@ -1059,7 +1059,7 @@ class TwitchStreamIE(TwitchVideosBaseIE):
|
|||||||
if self.get_param('live_from_start'):
|
if self.get_param('live_from_start'):
|
||||||
self.to_screen(f'{channel_name}: Extracting VOD to download 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)
|
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
|
return entry
|
||||||
self.report_warning(
|
self.report_warning(
|
||||||
'Unable to extract the VOD associated with this livestream', video_id=channel_name)
|
'Unable to extract the VOD associated with this livestream', video_id=channel_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user