summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilepupNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:35:51 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:35:51 +0100
commitfd105f8e51768ec1943cda2375bdfdbe5b0a3951 (patch)
treeccbdbe3cd23c606e8102f11ae4e0722f7e7a3227 /module/plugins/hoster/FilepupNet.py
parent"New Year" Update: hook plugins (diff)
downloadpyload-fd105f8e51768ec1943cda2375bdfdbe5b0a3951.tar.xz
"New Year" Update: hoster plugins
Diffstat (limited to 'module/plugins/hoster/FilepupNet.py')
-rw-r--r--module/plugins/hoster/FilepupNet.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/module/plugins/hoster/FilepupNet.py b/module/plugins/hoster/FilepupNet.py
index cc3e86bc9..a53773f81 100644
--- a/module/plugins/hoster/FilepupNet.py
+++ b/module/plugins/hoster/FilepupNet.py
@@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilepupNet(SimpleHoster):
__name__ = "FilepupNet"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?filepup\.net/files/\w+'
@@ -27,7 +27,7 @@ class FilepupNet(SimpleHoster):
OFFLINE_PATTERN = r'>This file has been deleted'
- LINK_PATTERN = r'(http://www\.filepup\.net/get/.+?)\''
+ LINK_FREE_PATTERN = r'(http://www\.filepup\.net/get/.+?)\''
def setup(self):
@@ -35,17 +35,13 @@ class FilepupNet(SimpleHoster):
self.chunkLimit = 1
- def handleFree(self):
- m = re.search(self.LINK_PATTERN, self.html)
+ def handleFree(self, pyfile):
+ m = re.search(self.LINK_FREE_PATTERN, self.html)
if m is None:
self.error(_("Download link not found"))
dl_link = m.group(1)
self.download(dl_link, post={'task': "download"})
- check = self.checkDownload({'html': re.compile("html")})
- if check == "html":
- self.error(_("Downloaded file is an html page"))
-
getInfo = create_getInfo(FilepupNet)