Add --force-generic-extractor
For some extractors that are hard to workout a good _VALID_URL we use very vague and unrestrictive ones, e.g. just allowing anything after hostname and capturing part of URL as id. If some of these extractors happen to have an video embed of some different hoster or platform and this scenario was not handled in extractor itself we end up with inability to download this embed until extractor is fixed to support embed of this kind. Forcing downloader to use the generic extractor can be a neat temporary solution for this problem. Example: FiveTV extractor with Tvigle embed - http://www.5-tv.ru/rabota/broadcasts/48/
This commit is contained in:
parent
9872d3110c
commit
d22dec74ff
4 changed files with 14 additions and 1 deletions
|
@ -977,7 +977,9 @@ class GenericIE(InfoExtractor):
|
|||
'upload_date': upload_date,
|
||||
}
|
||||
|
||||
if not self._downloader.params.get('test', False) and not is_intentional:
|
||||
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 full_response:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue