summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar zapp-brannigan <fuerst.reinje@web.de> 2014-10-16 12:38:23 +0200
committerGravatar zapp-brannigan <fuerst.reinje@web.de> 2014-10-16 12:38:23 +0200
commit9aba73b8929e8e3688de7be1dee7bf97ecd848a5 (patch)
treed700090c87c8303377a0b9b6a86ba05e1077f9d1 /module/plugins/hoster
parent[Webui] Fix wrong trafficleft format (diff)
downloadpyload-9aba73b8929e8e3688de7be1dee7bf97ecd848a5.tar.xz
Update PromptfileCom.py
The plugin is out of date. The direct link can not be found.
Diffstat (limited to 'module/plugins/hoster')
-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)