# -*- coding: utf-8 -*- # # Test links: # http://uploadhero.co/dl/wQBRAVSM import re from pyload.plugin.internal.SimpleHoster import SimpleHoster class UploadheroCom(SimpleHoster): __name = "UploadheroCom" __type = "hoster" __version = "0.17" __pattern = r'http://(?:www\.)?uploadhero\.com?/dl/\w+' __description = """UploadHero.co plugin""" __license = "GPLv3" __authors = [("mcmyst", "mcmyst@hotmail.fr"), ("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'
(?P.*?)
' SIZE_PATTERN = r'Taille du fichier : (?P.*?)' OFFLINE_PATTERN = r'

|

Le lien du fichier ci-dessus n\'existe plus.' 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 = \'"/]+)"' LINK_PREMIUM_PATTERN = r'