From 3ffb4c6e0bcffcd98b316eee60e2d202683736c0 Mon Sep 17 00:00:00 2001 From: kmarty Date: Tue, 26 Feb 2013 18:30:30 +0100 Subject: Fixed error getting file size --- module/plugins/hoster/UlozTo.py | 4 ++-- 1 file 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\w+/[^/?]*)" - __version__ = "0.90" + __version__ = "0.91" __description__ = """uloz.to""" __author_name__ = ("zoidberg") FILE_NAME_PATTERN = r'(?P[^<]+)' - FILE_SIZE_PATTERN = r'.*?(?P[0-9.]+\s[kMG]B)' + FILE_SIZE_PATTERN = r'.*?(?P[0-9.]+\s[kMG]?B)' FILE_INFO_PATTERN = r'

File (?P[^<]+) is password protected

' FILE_OFFLINE_PATTERN = r'404 - Page not found|

File (has been deleted|was banned)

' FILE_SIZE_REPLACEMENTS = [('([0-9.]+)\s([kMG])B', convertDecimalPrefix)] -- cgit v1.2.3 From 0ab28db74847e9787f56fc7c63f0af2f51aba00f Mon Sep 17 00:00:00 2001 From: kmarty Date: Tue, 26 Feb 2013 18:36:37 +0100 Subject: Fix paid account access (contributed by wendelin) --- module/plugins/accounts/UlozTo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/plugins/accounts/UlozTo.py b/module/plugins/accounts/UlozTo.py index 0c4ecda6a..232b6b64f 100644 --- a/module/plugins/accounts/UlozTo.py +++ b/module/plugins/accounts/UlozTo.py @@ -11,13 +11,13 @@ class UlozTo(Account): __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") - TRAFFIC_LEFT_PATTERN = r'