summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/DeadCrypter.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 16:01:38 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 16:01:38 +0100
commit502c1437e838282aa56a286bb3751382c3aaf65e (patch)
tree088f89ac569dc928e8c478bf4163a2595b6b0510 /module/plugins/internal/DeadCrypter.py
parent[MultiHoster] Fix filename recognition (diff)
downloadpyload-502c1437e838282aa56a286bb3751382c3aaf65e.tar.xz
Improve getInfo
Diffstat (limited to 'module/plugins/internal/DeadCrypter.py')
-rw-r--r--module/plugins/internal/DeadCrypter.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/internal/DeadCrypter.py b/module/plugins/internal/DeadCrypter.py
index 07c5c3881..0fa23eef3 100644
--- a/module/plugins/internal/DeadCrypter.py
+++ b/module/plugins/internal/DeadCrypter.py
@@ -20,8 +20,10 @@ class DeadCrypter(_Crypter):
@classmethod
- def getInfo(cls, url="", html=""):
- return {'name': urlparse(unquote(url)).path.split('/')[-1] or _("Unknown"), 'size': 0, 'status': 1, 'url': url}
+ def apiInfo(cls, url="", get={}, post={}):
+ api = super(DeadCrypter, self).apiInfo(url, get, post)
+ api['status'] = 1
+ return api
def setup(self):