summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-04 22:30:52 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-04 22:30:52 +0200
commitfa2b46b967b2f77c30334c28c3b6b437c762bab6 (patch)
tree7129bc2522b4deba0281284c875ee9f7a7657c56 /module
parent[SimpleHoster] Improve parseFileInfo (diff)
downloadpyload-fa2b46b967b2f77c30334c28c3b6b437c762bab6.tar.xz
[LoadTo] Fix patterns
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/LoadTo.py13
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)