summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Extractor.py
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-20 22:07:48 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-20 22:07:48 +0200
commit016fb615d508e16914480fc1298ba95a3a1d4d13 (patch)
treef78d71e539b03cafafd95563fb426b445eadb169 /pyload/plugin/Extractor.py
parentfix typo (diff)
downloadpyload-016fb615d508e16914480fc1298ba95a3a1d4d13.tar.xz
add log warnings by using of deprecated features
Diffstat (limited to 'pyload/plugin/Extractor.py')
-rw-r--r--pyload/plugin/Extractor.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyload/plugin/Extractor.py b/pyload/plugin/Extractor.py
index c0948c3dd..e50ab8818 100644
--- a/pyload/plugin/Extractor.py
+++ b/pyload/plugin/Extractor.py
@@ -27,7 +27,7 @@ class Extractor:
__description = """Base extractor plugin"""
__license = "GPLv3"
__authors = [("Walter Purcaro", "vuolter@gmail.com"),
- ("Immenz" , "immenz@gmx.net" )]
+ ("Immenz" , "immenz@gmx.net")]
EXTENSIONS = []
@@ -36,6 +36,11 @@ class Extractor:
@classmethod
+ def NAME(self):
+ return getattr(self, "_" + self.__name__ + "__name")
+
+
+ @classmethod
def isArchive(cls, filename):
name = os.path.basename(filename).lower()
return any(name.endswith(ext) for ext in cls.EXTENSIONS)