summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-22 00:07:16 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-22 00:07:16 +0200
commit32bd87243e0a4ac900098abda02cae0bbf7db72d (patch)
tree24a575f4c7319a3f9048718a08094bb510f72603
parentnow the plugin attribute '__name' is no more used it is reduntant and (diff)
downloadpyload-32bd87243e0a4ac900098abda02cae0bbf7db72d.tar.xz
little fix
-rw-r--r--pyload/plugin/extractor/SevenZip.py2
-rw-r--r--pyload/plugin/extractor/UnRar.py2
-rw-r--r--pyload/plugin/extractor/UnZip.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/extractor/SevenZip.py b/pyload/plugin/extractor/SevenZip.py
index 587db5563..cf5f7bfb8 100644
--- a/pyload/plugin/extractor/SevenZip.py
+++ b/pyload/plugin/extractor/SevenZip.py
@@ -20,7 +20,7 @@ class SevenZip(UnRar):
CMD = "7z"
- NAME = __name__
+ NAME = __name__.rsplit('.', 1)[1]
VERSION = ""
EXTENSIONS = [".7z", ".xz", ".zip", ".gz", ".gzip", ".tgz", ".bz2", ".bzip2",
diff --git a/pyload/plugin/extractor/UnRar.py b/pyload/plugin/extractor/UnRar.py
index d1fc3728e..83821cdc1 100644
--- a/pyload/plugin/extractor/UnRar.py
+++ b/pyload/plugin/extractor/UnRar.py
@@ -33,7 +33,7 @@ class UnRar(Extractor):
CMD = "unrar"
- NAME = __name__
+ NAME = __name__.rsplit('.', 1)[1]
VERSION = ""
EXTENSIONS = [".rar"]
diff --git a/pyload/plugin/extractor/UnZip.py b/pyload/plugin/extractor/UnZip.py
index f5cbe9402..8bfd63480 100644
--- a/pyload/plugin/extractor/UnZip.py
+++ b/pyload/plugin/extractor/UnZip.py
@@ -21,7 +21,7 @@ class UnZip(Extractor):
EXTENSIONS = [".zip", ".zip64"]
- NAME = __name__
+ NAME = __name__.rsplit('.', 1)[1]
VERSION = "(python %s.%s.%s)" % (sys.version_info[0], sys.version_info[1], sys.version_info[2])