diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-02-09 17:20:42 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-02-09 17:20:42 +0100 |
commit | 3a1190b97ca290b1e17b2361a6062c8450172a58 (patch) | |
tree | 77fe4c0a496ecfb39348886a81c5ec836f884fe3 /module/plugins/hoster | |
parent | filefactory premium, uloz.to new url pattern (diff) | |
download | pyload-3a1190b97ca290b1e17b2361a6062c8450172a58.tar.xz |
LoadTo pattern fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/LoadTo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/LoadTo.py b/module/plugins/hoster/LoadTo.py index b1204cb2d..82966acb7 100644 --- a/module/plugins/hoster/LoadTo.py +++ b/module/plugins/hoster/LoadTo.py @@ -33,7 +33,7 @@ def getInfo(urls): # Get file info name = re.search(LoadTo.FILE_NAME_PATTERN, html) size = re.search(LoadTo.SIZE_PATTERN, html) - if name is not None: + if name is not None and size is not None: name = name.group(1) size = size.group(1) result.append((name, size, 2, url)) @@ -42,8 +42,8 @@ def getInfo(urls): class LoadTo(Hoster): __name__ = "LoadTo" __type__ = "hoster" - __pattern__ = r"http://.*load.to/.*" - __version__ = "0.1" + __pattern__ = "http://(.*\.)*load.to/.*" + __version__ = "0.1001" __description__ = """load.to""" __author_name__ = ("halfman") __author_mail__ = ("Pulpan3@gmail.com") @@ -79,4 +79,4 @@ class LoadTo(Hoster): self.fail("Parse error (URL)") download_url = found.group(1) - self.download(download_url)
\ No newline at end of file + self.download(download_url) |