diff options
author | kmarty <gkmarty@gmail.com> | 2013-02-26 18:30:30 +0100 |
---|---|---|
committer | kmarty <gkmarty@gmail.com> | 2013-02-26 18:30:30 +0100 |
commit | 3ffb4c6e0bcffcd98b316eee60e2d202683736c0 (patch) | |
tree | 049ed0100ef16542a52ff96e82bd385b8f5c8cc1 /module/plugins/hoster | |
parent | Use 'Content-Disposition:' as filename of downloaded file (diff) | |
download | pyload-3ffb4c6e0bcffcd98b316eee60e2d202683736c0.tar.xz |
Fixed error getting file size
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/UlozTo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index d46b303f4..5a930fd8a 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -27,12 +27,12 @@ class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" __pattern__ = r"http://(\w*\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj.cz|zachowajto.pl)/(?:live/)?(?P<id>\w+/[^/?]*)" - __version__ = "0.90" + __version__ = "0.91" __description__ = """uloz.to""" __author_name__ = ("zoidberg") FILE_NAME_PATTERN = r'<a href="#download" class="jsShowDownload">(?P<N>[^<]+)</a>' - FILE_SIZE_PATTERN = r'<span id="fileSize">.*?(?P<S>[0-9.]+\s[kMG]B)</span>' + FILE_SIZE_PATTERN = r'<span id="fileSize">.*?(?P<S>[0-9.]+\s[kMG]?B)</span>' FILE_INFO_PATTERN = r'<p>File <strong>(?P<N>[^<]+)</strong> is password protected</p>' FILE_OFFLINE_PATTERN = r'<title>404 - Page not found</title>|<h1 class="h1">File (has been deleted|was banned)</h1>' FILE_SIZE_REPLACEMENTS = [('([0-9.]+)\s([kMG])B', convertDecimalPrefix)] |