diff options
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/hoster/LoadTo.py | 13 | 
1 files changed, 8 insertions, 5 deletions
| diff --git a/module/plugins/hoster/LoadTo.py b/module/plugins/hoster/LoadTo.py index a35712124..18398e905 100644 --- a/module/plugins/hoster/LoadTo.py +++ b/module/plugins/hoster/LoadTo.py @@ -13,27 +13,30 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class LoadTo(SimpleHoster):      __name__ = "LoadTo"      __type__ = "hoster" -    __version__ = "0.15" +    __version__ = "0.16"      __pattern__ = r'http://(?:www\.)?load\.to/\w+' -    __description__ = """Load.to hoster plugin""" +    __description__ = """ Load.to hoster plugin """      __author_name__ = ("halfman", "stickell")      __author_mail__ = ("Pulpan3@gmail.com", "l.stickell@yahoo.it") -    FILE_NAME_PATTERN = r'<head><title>(?P<N>.+) \/\/ Load.to</title>' -    FILE_SIZE_PATTERN = r'<a [^>]+>(?P<Z>.+)</a></h3>\s*Size: (?P<S>.*) (?P<U>[kKmMgG]?i?[bB])' -    OFFLINE_PATTERN = r'Can\'t find file\. Please check URL' +    FILE_NAME_PATTERN = r'<h1>(?P<N>.+)</h1>' +    FILE_SIZE_PATTERN = r'Size: (?P<S>[\d.]+) (?P<U>\w+)' +    OFFLINE_PATTERN = r'>Can\'t find file'      LINK_PATTERN = r'<form method="post" action="(.+?)"'      WAIT_PATTERN = r'type="submit" value="Download \((\d+)\)"'      SOLVEMEDIA_PATTERN = r'http://api\.solvemedia\.com/papi/challenge\.noscript\?k=([^"]+)' +    FILE_URL_REPLACEMENTS = [(r'(\w)$', r'\1/')] +      def setup(self):          self.multiDL = True          self.chunkLimit = 1 +      def handleFree(self):          # Search for Download URL          m = re.search(self.LINK_PATTERN, self.html) | 
