From 016fb615d508e16914480fc1298ba95a3a1d4d13 Mon Sep 17 00:00:00 2001 From: Armin <Armin@Armin-PC.diedering.lan> Date: Mon, 20 Apr 2015 22:07:48 +0200 Subject: add log warnings by using of deprecated features --- pyload/plugin/Extractor.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyload/plugin/Extractor.py') 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 = [] @@ -35,6 +35,11 @@ class Extractor: REPAIR = False + @classmethod + def NAME(self): + return getattr(self, "_" + self.__name__ + "__name") + + @classmethod def isArchive(cls, filename): name = os.path.basename(filename).lower() -- cgit v1.2.3