mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 05:33:05 +00:00
Compare commits
No commits in common. "e4b98809cffd285c41cf938706e54596d9ba54b2" and "5a373d97686ae3876ba42f102cf3163f3680a1e4" have entirely different histories.
e4b98809cf
...
5a373d9768
@ -1428,7 +1428,7 @@ class YoutubeDL(object):
|
|||||||
min_wait, max_wait = self.params.get('wait_for_video')
|
min_wait, max_wait = self.params.get('wait_for_video')
|
||||||
diff = try_get(ie_result, lambda x: x['release_timestamp'] - time.time())
|
diff = try_get(ie_result, lambda x: x['release_timestamp'] - time.time())
|
||||||
if diff is None and ie_result.get('live_status') == 'is_upcoming':
|
if diff is None and ie_result.get('live_status') == 'is_upcoming':
|
||||||
diff = round(random.uniform(min_wait, max_wait) if (max_wait and min_wait) else (max_wait or min_wait), 0)
|
diff = random.randrange(min_wait, max_wait) if (max_wait and min_wait) else (max_wait or min_wait)
|
||||||
self.report_warning('Release time of video is not known')
|
self.report_warning('Release time of video is not known')
|
||||||
elif (diff or 0) <= 0:
|
elif (diff or 0) <= 0:
|
||||||
self.report_warning('Video should already be available according to extracted info')
|
self.report_warning('Video should already be available according to extracted info')
|
||||||
|
@ -4026,7 +4026,6 @@ class YoutubeTabBaseInfoExtractor(YoutubeBaseInfoExtractor):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
known_renderers = {
|
known_renderers = {
|
||||||
'videoRenderer': (self._grid_entries, 'items'), # for membership tab
|
|
||||||
'gridPlaylistRenderer': (self._grid_entries, 'items'),
|
'gridPlaylistRenderer': (self._grid_entries, 'items'),
|
||||||
'gridVideoRenderer': (self._grid_entries, 'items'),
|
'gridVideoRenderer': (self._grid_entries, 'items'),
|
||||||
'gridChannelRenderer': (self._grid_entries, 'items'),
|
'gridChannelRenderer': (self._grid_entries, 'items'),
|
||||||
|
Loading…
Reference in New Issue
Block a user