summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-08-01 17:28:08 +0200
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-08-01 17:28:08 +0200
commitc32f7e92e2b737ac966df4a03cfe203943e6f628 (patch)
treea8c91b8e17d1b9ef6eceea91092ed4bef0373226 /module
parent[UploadedTo] Fix #2554 (diff)
downloadpyload-c32f7e92e2b737ac966df4a03cfe203943e6f628.tar.xz
[UploadedTo] Fix #2554 (2)
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/UploadedTo.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index 7e2468459..5e0212f74 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.43"
+ __version__ = "0.44"
__status__ = "testing"
__description__ = """Uploaded.to account plugin"""
@@ -29,9 +29,8 @@ class UploadedTo(Account):
premium = True if re.search(self.PREMIUM_PATTERN, html) else False
if premium:
- validuntil = None
+ validuntil = None
trafficleft = None
- premium = None
m = re.search(self.VALID_UNTIL_PATTERN, html, re.M)
if m is not None:
@@ -53,14 +52,13 @@ class UploadedTo(Account):
unit = traffic['U'].lower()
trafficleft = self.parse_traffic(size, unit)
- return {'validuntil' : validuntil,
- 'trafficleft': trafficleft,
- 'premium' : premium}
-
else:
- return {'validuntil' : -1,
- 'trafficleft': -1,
- 'premium' : premium}
+ validuntil = -1
+ trafficleft = -1
+
+ return {'validuntil' : validuntil,
+ 'trafficleft': trafficleft,
+ 'premium' : premium}
def signin(self, user, password, data):