1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-25 17:27:36 +00:00

[extractor/generic] Clarify generic extraction warning

This commit is contained in:
Sergey M․ 2015-06-24 03:08:24 +06:00
parent 0072afca8e
commit 2fece970b8

View 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)