From 93412126422b1324e920dc5097ee57c3ad11371b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Sat, 20 Apr 2013 12:42:57 +0200 Subject: Create a function in InfoExtractors that returns the InfoExtractor class with the given name --- youtube_dl/InfoExtractors.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube_dl') diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 8bfb2809b..eeedcf792 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -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'] -- cgit v1.2.3