summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-06 15:21:21 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-06 15:21:21 +0100
commitc0668ddd72c078bb36563e11499c8e851b3d8bb7 (patch)
treece81c1261a242b03206d62d8f11d8a86c3eae935 /module/plugins
parentfix seconds_to_midnight import (diff)
downloadpyload-c0668ddd72c078bb36563e11499c8e851b3d8bb7.tar.xz
fix #2183
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/UploadedTo.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index c689dc122..53fd5309e 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.39"
+ __version__ = "0.40"
__status__ = "testing"
__description__ = """Uploaded.to account plugin"""
@@ -59,12 +59,17 @@ class UploadedTo(Account):
def signin(self, user, password, data):
- self.load("http://uploaded.net/language/en")
-
- html = self.load("http://uploaded.net/io/login",
- post={'id': user,
- 'pw': password})
-
- m = re.search(r'"err":"(.+?)"', html)
- if m is not None:
- self.fail_login(m.group(1))
+ try:
+ self.load("http://uploaded.net/me")
+
+ html = self.load("http://uploaded.net/io/login",
+ post={'id': user,
+ 'pw': password})
+
+ m = re.search(r'"err":"(.+?)"', html)
+ if m is not None:
+ self.fail_login(m.group(1))
+
+ except Exception, e:
+ self.log_error(e, trace=True)
+ self.fail_login(e.message)