diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-24 03:08:24 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-24 03:08:24 +0600 |
commit | 2fece970b80022574a6b54c936820897cfd10d70 (patch) | |
tree | 2c943d0f621ddcbff89a1f00a8c5ad5a855cddaa /youtube_dl | |
parent | 0072afca8e02052c77dc3b7009e51114887e31b4 (diff) |
[extractor/generic] Clarify generic extraction warning
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/generic.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 3d672197c..c8582bda9 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -977,10 +977,10 @@ class GenericIE(InfoExtractor): 'upload_date': upload_date, } - if (not self._downloader.params.get('test', False) and - not is_intentional and - not self._downloader.params.get('force_generic_extractor', False)): - self._downloader.report_warning('Falling back on generic information extractor.') + if not self._downloader.params.get('test', False) and not is_intentional: + force = self._downloader.params.get('force_generic_extractor', False) + self._downloader.report_warning( + '%s on generic information extractor.' % ('Forcing' if force else 'Falling back')) if not full_response: request = compat_urllib_request.Request(url) |