[extractor/generic] Clarify generic extraction warning
authorSergey M․ <dstftw@gmail.com>
Tue, 23 Jun 2015 21:08:24 +0000 (03:08 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 23 Jun 2015 21:08:24 +0000 (03:08 +0600)
youtube_dl/extractor/generic.py

index 3d672197c2c046a6291eeecbfa3bf27e3fc02c77..c8582bda97f2b9704c3d53d53490296f0f8df0ac 100644 (file)
@@ -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)