summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadheroCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 20:05:07 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 20:05:07 +0200
commitec6e5dc7fcdcefee10e37d22473c9accae1104cf (patch)
treed19824c0223b083d5b4256530443165cfabb7a04 /module/plugins/accounts/UploadheroCom.py
parentMerge pull request #1850 from chaosblog/patch-2 (diff)
downloadpyload-ec6e5dc7fcdcefee10e37d22473c9accae1104cf.tar.xz
Account class completely rewritten + plugins updated
Diffstat (limited to 'module/plugins/accounts/UploadheroCom.py')
-rw-r--r--module/plugins/accounts/UploadheroCom.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py
index 2b676e90a..c5e684033 100644
--- a/module/plugins/accounts/UploadheroCom.py
+++ b/module/plugins/accounts/UploadheroCom.py
@@ -10,7 +10,7 @@ from module.plugins.internal.Account import Account
class UploadheroCom(Account):
__name__ = "UploadheroCom"
__type__ = "account"
- __version__ = "0.24"
+ __version__ = "0.25"
__status__ = "testing"
__description__ = """Uploadhero.co account plugin"""
@@ -18,10 +18,9 @@ class UploadheroCom(Account):
__authors__ = [("mcmyst", "mcmyst@hotmail.fr")]
- def grab_info(self, user, password, data, req):
+ def grab_info(self, user, password, data):
premium_pattern = re.compile('Il vous reste <span class="bleu">(\d+)</span> jours premium')
- data = self.get_data(user)
html = self.load("http://uploadhero.co/my-account")
if premium_pattern.search(html):
@@ -34,7 +33,7 @@ class UploadheroCom(Account):
return account_info
- def login(self, user, password, data, req):
+ def signin(self, user, password, data):
html = self.load("http://uploadhero.co/lib/connexion.php",
post={'pseudo_login': user,
'password_login': password})