aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-04-20 12:42:57 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-04-20 12:42:57 +0200
commit93412126422b1324e920dc5097ee57c3ad11371b (patch)
treee737993a07cbf91102ecbfd109430e958492b8da /youtube_dl
parentf7a9721e16139ba3e7bce76d04c3b43ff932f698 (diff)
downloadyoutube-dl-93412126422b1324e920dc5097ee57c3ad11371b.tar.xz
Create a function in InfoExtractors that returns the InfoExtractor class with the given name
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/InfoExtractors.py4
1 files changed, 4 insertions, 0 deletions
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']