diff options
author | Sergey M. <dstftw@gmail.com> | 2015-06-24 19:10:45 +0500 |
---|---|---|
committer | Sergey M. <dstftw@gmail.com> | 2015-06-24 19:10:45 +0500 |
commit | 3c3b4176bd60f8c7ffb81de8f1b30e871652103d (patch) | |
tree | 575ebf9c9513cd53dbf4753ff2f8bec985e4d391 /youtube_dl/extractor/generic.py | |
parent | 022383139ba96722d27200753084ae4d160f8a3d (diff) | |
parent | 2fece970b80022574a6b54c936820897cfd10d70 (diff) |
Merge pull request #5961 from dstftw/force-generic-extractor
Add --force-generic-extractor
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 5c03fddc6..7769ffc5c 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1014,7 +1014,9 @@ class GenericIE(InfoExtractor): } if not self._downloader.params.get('test', False) and not is_intentional: - self._downloader.report_warning('Falling back on generic information extractor.') + 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) |