mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 01:43:37 +00:00
[vlive] fix: fetching live video not yet uploaded for replay
This commit is contained in:
parent
1923b146b3
commit
8ba3ad0a48
|
@ -144,8 +144,10 @@ def _real_extract(self, url):
|
||||||
expected=True)
|
expected=True)
|
||||||
elif video_type in ('LIVE'):
|
elif video_type in ('LIVE'):
|
||||||
video_status = video_params["status"]
|
video_status = video_params["status"]
|
||||||
if video_status == 'RESERVED':
|
if video_status in ('RESERVED'):
|
||||||
raise ExtractorError('Coming soon!', expected=True)
|
raise ExtractorError('Coming soon!', expected=True)
|
||||||
|
elif video_status in ('ENDED', 'END'):
|
||||||
|
raise ExtractorError('Uploading for replay. Please wait...', expected=True)
|
||||||
else:
|
else:
|
||||||
return self._live(video_id, webpage, params)
|
return self._live(video_id, webpage, params)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue