aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-08-28 13:05:21 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-08-28 13:05:21 +0200
commit6d69d03bac08f8381031de721167103697bf3fed (patch)
treead283e945a729fa9d1c06ddfe0bcd41e8c8358ac /youtube_dl/extractor
parent204da0d3e3cc5f8675f10f44d0717e210405f8ca (diff)
parent56c7366547462ecec0536df58971249a8a870ddd (diff)
Merge remote-tracking branch 'origin/reuse_ies'
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 12169b2bb..77a13aea5 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -114,6 +114,11 @@ class InfoExtractor(object):
"""Real extraction process. Redefine in subclasses."""
pass
+ @classmethod
+ def ie_key(cls):
+ """A string for getting the InfoExtractor with get_info_extractor"""
+ return cls.__name__[:-2]
+
@property
def IE_NAME(self):
return type(self).__name__[:-2]