summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 18:17:09 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 18:17:09 +0200
commit5148729c553a5603682544409e84b662c8f6af98 (patch)
tree6945a28d8f290fddb934bad14f3d5b368312a275
parent[FilerNet] Revert captcha_key (diff)
parentUpdate PromptfileCom.py (diff)
downloadpyload-5148729c553a5603682544409e84b662c8f6af98.tar.xz
Merge pull request #800 from zapp-brannigan/patch-1
Update PromptfileCom.py
-rw-r--r--module/plugins/hoster/PromptfileCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/PromptfileCom.py b/module/plugins/hoster/PromptfileCom.py
index 11b7d5857..4af762e29 100644
--- a/module/plugins/hoster/PromptfileCom.py
+++ b/module/plugins/hoster/PromptfileCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class PromptfileCom(SimpleHoster):
__name__ = "PromptfileCom"
__type__ = "hoster"
- __version__ = "0.1"
+ __version__ = "0.11"
__pattern__ = r'https?://(?:www\.)?promptfile\.com/'
@@ -21,7 +21,7 @@ class PromptfileCom(SimpleHoster):
OFFLINE_PATTERN = r'<span style="[^"]*" title="File Not Found">File Not Found</span>'
CHASH_PATTERN = r'<input type="hidden" name="chash" value="([^"]*)" />'
- LINK_PATTERN = r'clip: {\s*url: \'(https?://(?:www\.)promptfile[^\']*)\','
+ LINK_PATTERN = r'<a href=\"(.+)\" target=\"_blank\" class=\"view_dl_link\">Download File</a>'
def handleFree(self):
@@ -35,7 +35,7 @@ class PromptfileCom(SimpleHoster):
self.html = self.load(self.pyfile.url, decode=True, post={'chash': chash})
# STAGE 2: get the direct link
- m = re.search(self.LINK_PATTERN, self.html, re.MULTILINE | re.DOTALL)
+ m = re.search(self.LINK_PATTERN, self.html)
if m is None:
self.parseError("Unable to detect direct link")
direct = m.group(1)