summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/JumbofilesCom.py
diff options
context:
space:
mode:
authorGravatar godofdream <soilfiction@gmail.com> 2012-08-23 10:37:31 +0200
committerGravatar godofdream <soilfiction@gmail.com> 2012-08-23 10:37:31 +0200
commit57c8ffb666382537b7cfc09022fb75ea77fbfd53 (patch)
tree2d73fc62a2702f9612e8330c67eaca39d1dfe585 /module/plugins/hoster/JumbofilesCom.py
parentFixed Onefichier, closed 664 (diff)
downloadpyload-57c8ffb666382537b7cfc09022fb75ea77fbfd53.tar.xz
Fixed Jumbofiles closed #660
Diffstat (limited to 'module/plugins/hoster/JumbofilesCom.py')
-rw-r--r--module/plugins/hoster/JumbofilesCom.py28
1 files changed, 20 insertions, 8 deletions
diff --git a/module/plugins/hoster/JumbofilesCom.py b/module/plugins/hoster/JumbofilesCom.py
index a338b31cc..9e8adb512 100644
--- a/module/plugins/hoster/JumbofilesCom.py
+++ b/module/plugins/hoster/JumbofilesCom.py
@@ -1,19 +1,31 @@
# -*- coding: utf-8 -*-
import re
-from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
from module.utils import html_unescape
-class JumbofilesCom(XFileSharingPro):
+class JumbofilesCom(SimpleHoster):
__name__ = "JumbofilesCom"
__type__ = "hoster"
- __pattern__ = r"http://(?:\w*\.)*(jumbofiles.com)/\w{12}"
- __version__ = "0.01"
+ __pattern__ = r"http://(?:\w*\.)*jumbofiles.com/(\w{12}).*"
+ __version__ = "0.02"
__description__ = """JumboFiles.com hoster plugin"""
- __author_name__ = ("zoidberg")
- __author_mail__ = ("zoidberg@mujmail.cz")
+ __author_name__ = ("godofdream")
+ __author_mail__ = ("soilfiction@gmail.com")
FILE_INFO_PATTERN = '<TR><TD>(?P<N>[^<]+?)\s*<small>\((?P<S>[\d.]+)\s*(?P<U>[KMG][bB])\)</small></TD></TR>'
FILE_OFFLINE_PATTERN = 'Not Found or Deleted / Disabled due to inactivity or DMCA'
- DIRECT_LINK_PATTERN = '<FORM METHOD="LINK" ACTION="(.*?)"'
+ DIRECT_LINK_PATTERN = '<meta http-equiv="refresh" content="10;url=(.+)">'
-getInfo = create_getInfo(JumbofilesCom) \ No newline at end of file
+ def setup(self):
+ self.resumeDownload = True
+ self.multiDL = True
+
+ def handleFree(self):
+ ukey = re.search(self.__pattern__, self.pyfile.url).group(1)
+ post_data = {"id" : ukey, "op": "download3", "rand": ""}
+ html = self.load(self.pyfile.url, post = post_data, decode=True)
+ url = re.search(self.DIRECT_LINK_PATTERN, html).group(1)
+ self.logDebug("Download " + url)
+ self.download(url)
+
+getInfo = create_getInfo(JumbofilesCom)