[ie/chzzk:live] Support --wait-for-video (#9309)

Authored by: hui1601
This commit is contained in:
Dong Heon Hee
2024-02-29 20:42:20 +09:00
committed by GitHub
parent f00c0def74
commit 804f236611

View File

@@ -2,7 +2,7 @@ import functools
from .common import InfoExtractor
from ..utils import (
ExtractorError,
UserNotLive,
float_or_none,
int_or_none,
parse_iso8601,
@@ -40,7 +40,7 @@ class CHZZKLiveIE(InfoExtractor):
note='Downloading channel info', errnote='Unable to download channel info')['content']
if live_detail.get('status') == 'CLOSE':
raise ExtractorError('The channel is not currently live', expected=True)
raise UserNotLive(video_id=channel_id)
live_playback = self._parse_json(live_detail['livePlaybackJson'], channel_id)