aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/adultswim.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-11 01:04:41 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-11 01:04:41 +0600
commit75f105d455bd0a2226ce4fa78b56c7a344ad6bd8 (patch)
treeb727ae399c511d5a6bc8391a611714c084291762 /youtube_dl/extractor/adultswim.py
parent00cde0b8dc3a534a929b88da086cc540dc212ea4 (diff)
downloadyoutube-dl-75f105d455bd0a2226ce4fa78b56c7a344ad6bd8.zip
youtube-dl-75f105d455bd0a2226ce4fa78b56c7a344ad6bd8.tar.gz
youtube-dl-75f105d455bd0a2226ce4fa78b56c7a344ad6bd8.tar.bz2
[adultswim] Clarify no media message
Diffstat (limited to 'youtube_dl/extractor/adultswim.py')
-rw-r--r--youtube_dl/extractor/adultswim.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/adultswim.py b/youtube_dl/extractor/adultswim.py
index 3560687..130afe7 100644
--- a/youtube_dl/extractor/adultswim.py
+++ b/youtube_dl/extractor/adultswim.py
@@ -137,10 +137,11 @@ class AdultSwimIE(InfoExtractor):
stream = video_info.get('stream')
clips = [stream] if stream else video_info.get('clips')
if not clips:
- if video_info.get('auth'):
- raise ExtractorError('This video is only available for registered users', expected=True)
- else:
- raise ExtractorError('Unable to find clips')
+ raise ExtractorError(
+ 'This video is only available via cable service provider subscription that'
+ ' is not currently supported. You may want to use --cookies.'
+ if video_info.get('auth') is True else 'Unable to find stream or clips',
+ expected=True)
segment_ids = [clip['videoPlaybackID'] for clip in clips]
episode_id = video_info['id']