diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-04 23:34:12 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-04 23:34:12 +0200 |
commit | 7e74afa16d11141e3c13fe05e37ee83bbe02421a (patch) | |
tree | 7dce6f780144e47717b667afc2d81a0009b620af | |
parent | [EgoFilesCom] Mark dead (diff) | |
download | pyload-7e74afa16d11141e3c13fe05e37ee83bbe02421a.tar.xz |
[HotfileFolderCom] Mark dead
-rw-r--r-- | module/plugins/crypter/HotfileFolderCom.py | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/module/plugins/crypter/HotfileFolderCom.py b/module/plugins/crypter/HotfileFolderCom.py index 3efd8fc87..733437ec2 100644 --- a/module/plugins/crypter/HotfileFolderCom.py +++ b/module/plugins/crypter/HotfileFolderCom.py @@ -1,30 +1,15 @@ # -*- coding: utf-8 -*- -import re +from module.plugins.internal.DeadCrypter import DeadCrypter -from module.plugins.Crypter import Crypter - -class HotfileFolderCom(Crypter): +class HotfileFolderCom(DeadCrypter): __name__ = "HotfileFolderCom" __type__ = "crypter" - __version__ = "0.1" + __version__ = "0.2" - __pattern__ = r'http://(?:www\.)?hotfile.com/list/\w+/\w+' + __pattern__ = r'https)://(?:www\.)?hotfile\.com/list/\w+/\w+' __description__ = """Hotfile.com folder decrypter plugin""" __author_name__ = "RaNaN" __author_mail__ = "RaNaN@pyload.org" - - - def decrypt(self, pyfile): - html = self.load(pyfile.url) - - name = re.findall( - r'<img src="/i/folder.gif" width="23" height="14" style="margin-bottom: -2px;" />([^<]+)', html, - re.MULTILINE)[0].replace("/", "") - new_links = re.findall(r'href="(http://(www.)?hotfile\.com/dl/\d+/[0-9a-zA-Z]+[^"]+)', html) - - new_links = [x[0] for x in new_links] - - self.packages = [(name, new_links, name)] |