[vlive] fix: fetching live video not yet uploaded for replay

This commit is contained in:
exwm 2020-11-01 21:15:45 -05:00
parent 1923b146b3
commit 8ba3ad0a48
1 changed files with 3 additions and 1 deletions

View File

@ -144,8 +144,10 @@ class VLiveIE(NaverBaseIE):
expected=True)
elif video_type in ('LIVE'):
video_status = video_params["status"]
if video_status == 'RESERVED':
if video_status in ('RESERVED'):
raise ExtractorError('Coming soon!', expected=True)
elif video_status in ('ENDED', 'END'):
raise ExtractorError('Uploading for replay. Please wait...', expected=True)
else:
return self._live(video_id, webpage, params)
else: