# -*- coding: utf-8 -*- import re from pyload.plugin.internal.SimpleHoster import SimpleHoster class JumbofilesCom(SimpleHoster): __name = "JumbofilesCom" __type = "hoster" __version = "0.03" __pattern = r'http://(?:www\.)?jumbofiles\.com/(?P\w{12})' __description = """JumboFiles.com hoster plugin""" __license = "GPLv3" __authors = [("godofdream", "soilfiction@gmail.com")] INFO_PATTERN = r'(?P[^<]+?)\s*\((?P[\d.,]+)\s*(?P[\w^_]+)' OFFLINE_PATTERN = r'Not Found or Deleted / Disabled due to inactivity or DMCA' LINK_FREE_PATTERN = r'' def setup(self): self.resumeDownload = True self.multiDL = True def handleFree(self, pyfile): post_data = {"id": self.info['pattern']['ID'], "op": "download3", "rand": ""} html = self.load(self.pyfile.url, post=post_data, decode=True) self.link = re.search(self.LINK_FREE_PATTERN, html).group(1)