diff options
Diffstat (limited to 'pyload/plugin/Extractor.py')
-rw-r--r-- | pyload/plugin/Extractor.py | 7 |
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) |