# -*- coding: utf-8 -*- # # Test links: # http://uploadhero.co/dl/wQBRAVSM import re import urlparse from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadheroCom(SimpleHoster): __name__ = "UploadheroCom" __type__ = "hoster" __version__ = "0.18" __pattern__ = r'http://(?:www\.)?uploadhero\.com?/dl/\w+' __config__ = [("use_premium", "bool", "Use premium account if available", True)] __description__ = """UploadHero.co plugin""" __license__ = "GPLv3" __authors__ = [("mcmyst", "mcmyst@hotmail.fr"), ("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'
(?P.+?)<' SIZE_PATTERN = r'>Filesize: (?P[\d.,]+) (?P[\w^_]+)' OFFLINE_PATTERN = r'

' COOKIES = [("uploadhero.co", "lang", "en")] IP_BLOCKED_PATTERN = r'href="(/lightbox_block_download\.php\?min=.+?)"' IP_WAIT_PATTERN = r'(\d+).*\s*(\d+)' CAPTCHA_PATTERN = r'"(/captchadl\.php\?\w+)"' LINK_FREE_PATTERN = r'var magicomfg = \'