diff options
| author | 2015-05-29 23:33:10 +0200 | |
|---|---|---|
| committer | 2015-05-29 23:33:10 +0200 | |
| commit | 844dfd92f590e531ca2f7fd86305fcbc13a03721 (patch) | |
| tree | 5303bd07749b362dab071ada6197fe37dda85b27 /module/plugins/accounts/MultishareCz.py | |
| parent | [BitshareCom] Code cosmetics (diff) | |
| parent | [SimpleHoster] Fix DB error (diff) | |
| download | pyload-844dfd92f590e531ca2f7fd86305fcbc13a03721.tar.xz | |
Merge pull request #1 from pyload/stable
sync stable
Diffstat (limited to 'module/plugins/accounts/MultishareCz.py')
| -rw-r--r-- | module/plugins/accounts/MultishareCz.py | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py index 878413007..3488e3288 100644 --- a/module/plugins/accounts/MultishareCz.py +++ b/module/plugins/accounts/MultishareCz.py @@ -8,7 +8,7 @@ from module.plugins.Account import Account  class MultishareCz(Account):      __name__    = "MultishareCz"      __type__    = "account" -    __version__ = "0.04" +    __version__ = "0.05"      __description__ = """Multishare.cz account plugin"""      __license__     = "GPLv3" @@ -16,7 +16,7 @@ class MultishareCz(Account):      TRAFFIC_LEFT_PATTERN = r'<span class="profil-zvyrazneni">Kredit:</span>\s*<strong>(?P<S>[\d.,]+) (?P<U>[\w^_]+)</strong>' -    ACCOUNT_INFO_PATTERN = r'<input type="hidden" id="(u_ID|u_hash)" name="[^"]*" value="([^"]+)">' +    ACCOUNT_INFO_PATTERN = r'<input type="hidden" id="(u_ID|u_hash)" name=".+?" value="(.+?)">'      def loadAccountInfo(self, user, req): @@ -34,11 +34,11 @@ class MultishareCz(Account):      def login(self, user, data, req): -        html = req.load('http://www.multishare.cz/html/prihlaseni_process.php', post={ -            "akce": "Přihlásit", -            "heslo": data['password'], -            "jmeno": user -        }, decode=True) +        html = req.load('http://www.multishare.cz/html/prihlaseni_process.php', +                        post={"akce" : "Přihlásit", +                              "heslo": data['password'], +                              "jmeno": user}, +                        decode=True)          if '<div class="akce-chyba akce">' in html:              self.wrongPassword()  | 
