summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/HotfileFolderCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 13:32:36 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 13:32:36 +0200
commitd1e2da48ff1158c84bab62aba3e62ff16f24f124 (patch)
tree14c2b461b84ab1c07ab39fbe3a80aa69c7b4c8ef /pyload/plugins/crypter/HotfileFolderCom.py
parentFix refs on hook plugins + add missing __init__ files (diff)
parentRemove old Ev0InFetcher hook (diff)
downloadpyload-d1e2da48ff1158c84bab62aba3e62ff16f24f124.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: module/plugins/internal/CaptchaService.py pyload/plugins/account/CyberlockerCh.py pyload/plugins/account/EgoFilesCom.py pyload/plugins/account/HotfileCom.py pyload/plugins/crypter/HotfileFolderCom.py pyload/plugins/crypter/LinkSaveIn.py pyload/plugins/crypter/OneKhDe.py pyload/plugins/hoster/EgoFilesCom.py pyload/plugins/internal/XFSPAccount.py
Diffstat (limited to 'pyload/plugins/crypter/HotfileFolderCom.py')
-rw-r--r--pyload/plugins/crypter/HotfileFolderCom.py23
1 files changed, 4 insertions, 19 deletions
diff --git a/pyload/plugins/crypter/HotfileFolderCom.py b/pyload/plugins/crypter/HotfileFolderCom.py
index 21d086302..4f144cc52 100644
--- a/pyload/plugins/crypter/HotfileFolderCom.py
+++ b/pyload/plugins/crypter/HotfileFolderCom.py
@@ -1,30 +1,15 @@
# -*- coding: utf-8 -*-
-import re
+from pyload.plugins.internal.DeadCrypter import DeadCrypter
-from pyload.plugins.base.Crypter import Crypter
-
-class HotfileFolderCom(Crypter):
+class HotfileFolderCom(DeadCrypter):
__name__ = "HotfileFolderCom"
__type__ = "crypter"
- __version__ = "0.1"
+ __version__ = "0.3"
- __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)]