mirror of https://github.com/yt-dlp/yt-dlp.git
[adultswim] Clarify no media message
This commit is contained in:
parent
00cde0b8dc
commit
75f105d455
|
@ -137,10 +137,11 @@ class AdultSwimIE(InfoExtractor):
|
||||||
stream = video_info.get('stream')
|
stream = video_info.get('stream')
|
||||||
clips = [stream] if stream else video_info.get('clips')
|
clips = [stream] if stream else video_info.get('clips')
|
||||||
if not clips:
|
if not clips:
|
||||||
if video_info.get('auth'):
|
raise ExtractorError(
|
||||||
raise ExtractorError('This video is only available for registered users', expected=True)
|
'This video is only available via cable service provider subscription that'
|
||||||
else:
|
' is not currently supported. You may want to use --cookies.'
|
||||||
raise ExtractorError('Unable to find clips')
|
if video_info.get('auth') is True else 'Unable to find stream or clips',
|
||||||
|
expected=True)
|
||||||
segment_ids = [clip['videoPlaybackID'] for clip in clips]
|
segment_ids = [clip['videoPlaybackID'] for clip in clips]
|
||||||
|
|
||||||
episode_id = video_info['id']
|
episode_id = video_info['id']
|
||||||
|
|
Loading…
Reference in New Issue