# -*- coding: utf-8 -*- # # Test links: # http://www.load.to/JWydcofUY6/random.bin # http://www.load.to/oeSmrfkXE/random100.bin import re from module.plugins.internal.CaptchaService import SolveMedia from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class LoadTo(SimpleHoster): __name__ = "LoadTo" __type__ = "hoster" __version__ = "0.18" __pattern__ = r'http://(?:www\.)?load\.to/\w+' __description__ = """ Load.to hoster plugin """ __license__ = "GPLv3" __authors__ = [("halfman", "Pulpan3@gmail.com"), ("stickell", "l.stickell@yahoo.it")] FILE_NAME_PATTERN = r'

(?P.+)

' FILE_SIZE_PATTERN = r'Size: (?P[\d.,]+) (?P[\w^_]+)' OFFLINE_PATTERN = r'>Can\'t find file' LINK_PATTERN = r'
404 Not Found"), 'html': re.compile("html")}) if check == "404": self.invalidCaptcha() self.retry() elif check == "html": self.logWarning(_("Downloaded file is an html page, will retry")) self.retry() getInfo = create_getInfo(LoadTo)