diff options
author | Stefano <l.stickell@yahoo.it> | 2013-07-30 21:35:28 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-07-30 21:35:28 +0200 |
commit | a77153c34be3d230d3e80153e57cfef933968ed9 (patch) | |
tree | a05b5d67b1d338ab6ed98db1b2ea3f443c0fbcfa /pyload/plugins/accounts/MultishareCz.py | |
parent | Putlocker: allow multiDL and chunked downloads even in free downloads (diff) | |
download | pyload-a77153c34be3d230d3e80153e57cfef933968ed9.tar.xz |
Adapted 6 multi hoster plugins
Diffstat (limited to 'pyload/plugins/accounts/MultishareCz.py')
-rw-r--r-- | pyload/plugins/accounts/MultishareCz.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pyload/plugins/accounts/MultishareCz.py b/pyload/plugins/accounts/MultishareCz.py index 273936615..a50ced431 100644 --- a/pyload/plugins/accounts/MultishareCz.py +++ b/pyload/plugins/accounts/MultishareCz.py @@ -17,14 +17,14 @@ @author: zoidberg """ -from module.plugins.Account import Account +from pyload.plugins.MultiHoster import MultiHoster #from time import mktime, strptime #from pycurl import REFERER import re -from module.utils import parseFileSize +from pyload.utils import parseFileSize -class MultishareCz(Account): +class MultishareCz(MultiHoster): __name__ = "MultishareCz" __version__ = "0.02" __type__ = "account" @@ -34,6 +34,7 @@ class MultishareCz(Account): TRAFFIC_LEFT_PATTERN = r'<span class="profil-zvyrazneni">Kredit:</span>\s*<strong>(?P<S>[0-9,]+) (?P<U>\w+)</strong>' ACCOUNT_INFO_PATTERN = r'<input type="hidden" id="(u_ID|u_hash)" name="[^"]*" value="([^"]+)">' + HOSTER_PATTERN = r'<img class="logo-shareserveru"[^>]*?alt="([^"]+)"></td>\s*<td class="stav">[^>]*?alt="OK"' def loadAccountInfo(self, user, req): #self.relogin(user) @@ -56,4 +57,8 @@ class MultishareCz(Account): }, decode=True) if '<div class="akce-chyba akce">' in html: - self.wrongPassword()
\ No newline at end of file + self.wrongPassword() + + def loadHosterList(self, req): + page = req.load("http://www.multishare.cz/monitoring/") + return re.findall(self.HOSTER_PATTERN, page) |