summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/DeadCrypter.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/DeadCrypter.py')
-rw-r--r--module/plugins/internal/DeadCrypter.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/module/plugins/internal/DeadCrypter.py b/module/plugins/internal/DeadCrypter.py
index 07c5c3881..c93447164 100644
--- a/module/plugins/internal/DeadCrypter.py
+++ b/module/plugins/internal/DeadCrypter.py
@@ -1,8 +1,5 @@
# -*- coding: utf-8 -*-
-from urllib import unquote
-from urlparse import urlparse
-
from module.plugins.internal.SimpleCrypter import create_getInfo
from module.plugins.Crypter import Crypter as _Crypter
@@ -10,7 +7,7 @@ from module.plugins.Crypter import Crypter as _Crypter
class DeadCrypter(_Crypter):
__name__ = "DeadCrypter"
__type__ = "crypter"
- __version__ = "0.04"
+ __version__ = "0.05"
__pattern__ = r'^unmatchable$'
@@ -20,8 +17,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):
+ api = super(DeadCrypter, cls).apiInfo(url)
+ api['status'] = 1
+ return api
def setup(self):