summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/DontKnowMe.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 13:42:52 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 13:42:52 +0100
commitea93f9b02ba59b026a35299798b71727db44b0c5 (patch)
tree219f7f8c06df3a7d9d286c93aefd859ba081d7ee /module/plugins/crypter/DontKnowMe.py
parent[Keep2shareCc] Fix login (still no captcha support) (diff)
downloadpyload-ea93f9b02ba59b026a35299798b71727db44b0c5.tar.xz
[Dereferer][DontKnowMe] Extend SimpleDereferer
Diffstat (limited to 'module/plugins/crypter/DontKnowMe.py')
-rw-r--r--module/plugins/crypter/DontKnowMe.py22
1 files changed, 5 insertions, 17 deletions
diff --git a/module/plugins/crypter/DontKnowMe.py b/module/plugins/crypter/DontKnowMe.py
index 8d2a52c2c..d656cde4c 100644
--- a/module/plugins/crypter/DontKnowMe.py
+++ b/module/plugins/crypter/DontKnowMe.py
@@ -1,29 +1,17 @@
# -*- coding: utf-8 -*-
-import re
+from module.plugins.internal.SimpleDereferer import SimpleDereferer
-from urllib import unquote
-from module.plugins.Crypter import Crypter
-
-
-class DontKnowMe(Crypter):
+class DontKnowMe(SimpleDereferer):
__name__ = "DontKnowMe"
__type__ = "crypter"
- __version__ = "0.10"
+ __version__ = "0.11"
- __pattern__ = r'http://(?:www\.)?dontknow\.me/at/\?.+$'
+ __pattern__ = r'http://(?:www\.)?dontknow\.me/at/\?(?P<LINK>.+)'
__config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
__description__ = """DontKnow.me decrypter plugin"""
__license__ = "GPLv3"
- __authors__ = [("selaux", None)]
-
-
- LINK_PATTERN = r'http://dontknow\.me/at/\?(.+)$'
-
-
- def decrypt(self, pyfile):
- link = re.findall(self.LINK_PATTERN, pyfile.url)[0]
- self.urls = [unquote(link)]
+ __authors__ = [("selaux", "")]