# -*- coding: utf-8 -*- # # Test links: # http://www.load.to/JWydcofUY6/random.bin # http://www.load.to/oeSmrfkXE/random100.bin import re from pyload.plugins.internal.CaptchaService import SolveMedia from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class LoadTo(SimpleHoster): __name__ = "LoadTo" __type__ = "hoster" __version__ = "0.16" __pattern__ = r'http://(?:www\.)?load\.to/\w+' __description__ = """ Load.to hoster plugin """ __author_name__ = ("halfman", "stickell") __author_mail__ = ("Pulpan3@gmail.com", "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")}) if check == "404": self.logWarning("The captcha you entered was incorrect. Please try again.") self.invalidCaptcha() self.retry() getInfo = create_getInfo(LoadTo)