aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2015-06-24 19:10:45 +0500
committerSergey M. <dstftw@gmail.com>2015-06-24 19:10:45 +0500
commit3c3b4176bd60f8c7ffb81de8f1b30e871652103d (patch)
tree575ebf9c9513cd53dbf4753ff2f8bec985e4d391 /youtube_dl/extractor/generic.py
parent022383139ba96722d27200753084ae4d160f8a3d (diff)
parent2fece970b80022574a6b54c936820897cfd10d70 (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.py4
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)