]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/commonmistakes.py
75c06903fc6073be5e214bb8eb79469bfafbeb1b
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
4 from ..utils
import ExtractorError
7 class CommonMistakesIE(InfoExtractor
):
8 IE_DESC
= False # Do not list
15 'only_matching': True,
18 'only_matching': True,
21 def _real_extract(self
, url
):
23 'You\'ve asked youtube-dl to download the URL "%s". '
24 'That doesn\'t make any sense. '
25 'Simply remove the parameter in your command or configuration.'
27 if self
._downloader
.params
.get('verbose'):
28 msg
+= ' Add -v to the command line to see what arguments and configuration youtube-dl got.'
29 raise ExtractorError(msg
, expected
=True)