Create a function in InfoExtractors that returns the InfoExtractor class with the given name
This commit is contained in:
parent
f7a9721e16
commit
9341212642
2 changed files with 5 additions and 1 deletions
|
@ -4469,3 +4469,7 @@ def gen_extractors():
|
|||
ARDIE(),
|
||||
GenericIE()
|
||||
]
|
||||
|
||||
def get_info_extractor(ie_name):
|
||||
"""Returns the info extractor class with the given ie_name"""
|
||||
return globals()[ie_name+'IE']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue