--ie-key cli option
parent
9aa7e4481b
commit
2404fc148e
|
@ -787,6 +787,9 @@ class HaruhiDL(object):
|
|||
if not ie_key and force_generic_extractor:
|
||||
ie_key = 'Generic'
|
||||
|
||||
if not ie_key:
|
||||
ie_key = self.params.get('ie_key')
|
||||
|
||||
if ie_key:
|
||||
ies = [self.get_info_extractor(ie_key)]
|
||||
else:
|
||||
|
|
|
@ -348,6 +348,7 @@ def _real_main(argv=None):
|
|||
'restrictfilenames': opts.restrictfilenames,
|
||||
'ignoreerrors': opts.ignoreerrors,
|
||||
'force_generic_extractor': opts.force_generic_extractor,
|
||||
'ie_key': opts.ie_key,
|
||||
'ratelimit': opts.ratelimit,
|
||||
'nooverwrites': opts.nooverwrites,
|
||||
'retries': opts.retries,
|
||||
|
|
|
@ -165,6 +165,10 @@ def parseOpts(overrideArguments=None):
|
|||
'--force-generic-extractor',
|
||||
action='store_true', dest='force_generic_extractor', default=False,
|
||||
help='Force extraction to use the generic extractor')
|
||||
general.add_option(
|
||||
'--ie-key',
|
||||
action='store', dest='ie_key', default=None,
|
||||
help='Use the specified extractor (for performance improvements on some automated commands)')
|
||||
general.add_option(
|
||||
'--default-search',
|
||||
dest='default_search', metavar='PREFIX',
|
||||
|
|
Loading…
Reference in New Issue