# -*- coding: utf-8 -*- import re from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo class UptoboxCom(XFSPHoster): __name__ = "UptoboxCom" __type__ = "hoster" __version__ = "0.12" __pattern__ = r'https?://(?:www\.)?uptobox\.com/\w{12}' __description__ = """Uptobox.com hoster plugin""" __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] HOSTER_NAME = "uptobox.com" FILE_INFO_PATTERN = r'"para_title">(?P.+) \((?P[\d.]+) (?P\w+)\)' OFFLINE_PATTERN = r'>(File not found|Access Denied|404 Not Found)' WAIT_PATTERN = r'>(\d+) seconds<' LINK_PATTERN = r'"(https?://\w+\.uptobox\.com/d/.*?)"' def setup(self): self.multiDL = True self.chunkLimit = 1 self.resumeDownload = True getInfo = create_getInfo(UptoboxCom)