diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-02 08:45:02 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-02 08:45:02 +0200 |
commit | 7fe6d2bd4df968e3d1dff19075d894066e3327b2 (patch) | |
tree | 547829ce4786710013b83053d9ed3a8cb270c3da /module/plugins/accounts | |
parent | Fix https://github.com/pyload/pyload/issues/1643 (diff) | |
download | pyload-7fe6d2bd4df968e3d1dff19075d894066e3327b2.tar.xz |
Fix https://github.com/pyload/pyload/issues/1590
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/UploadedTo.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py index 3b733ae23..1757f2af8 100644 --- a/module/plugins/accounts/UploadedTo.py +++ b/module/plugins/accounts/UploadedTo.py @@ -9,7 +9,7 @@ from module.plugins.internal.Account import Account class UploadedTo(Account): __name__ = "UploadedTo" __type__ = "account" - __version__ = "0.32" + __version__ = "0.33" __status__ = "testing" __description__ = """Uploaded.to account plugin""" @@ -17,8 +17,8 @@ class UploadedTo(Account): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - PREMIUM_PATTERN = r'<em>Premium</em>' - VALID_UNTIL_PATTERN = r'<td>Duration:</td>\s*<th>(.+?)<' + PREMIUM_PATTERN = r'<em>Premium</em>' + VALID_UNTIL_PATTERN = r'<td>Duration:</td>\s*<th>(.+?)<' TRAFFIC_LEFT_PATTERN = r'<b class="cB">(?P<S>[\d.,]+) (?P<U>[\w^_]+)' @@ -64,10 +64,10 @@ class UploadedTo(Account): def login(self, user, password, data, req): #: req.cj.setCookie("uploaded.net", "lang", "en") - html = self.load("https://uploaded.net/io/login", + html = self.load("http://uploaded.net/io/login", post={'id': user, - 'pw': password, - '_': ""}) + 'pw': password}) - if '"err"' in html: - self.login_fail() + m = re.search(r'"err":"(.+?)"', html) + if m is not None: + self.login_fail(m.group(1)) |