summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Paul King <devnull@localhost> 2011-05-14 11:15:32 +0200
committerGravatar Paul King <devnull@localhost> 2011-05-14 11:15:32 +0200
commit4290322f2de1dcc5a6c1cc15ffbce91a7cf734af (patch)
treeca42941e1972459fce766dc36769de239ef92619
parentfix last commit (diff)
downloadpyload-4290322f2de1dcc5a6c1cc15ffbce91a7cf734af.tar.xz
revert premium account change see #309
-rw-r--r--module/plugins/hoster/FilesonicCom.py6
-rw-r--r--module/plugins/hoster/MegauploadCom.py4
2 files changed, 7 insertions, 3 deletions
diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py
index 493a9c962..8862c84e0 100644
--- a/module/plugins/hoster/FilesonicCom.py
+++ b/module/plugins/hoster/FilesonicCom.py
@@ -48,7 +48,7 @@ class FilesonicCom(Hoster):
__name__ = "FilesonicCom"
__type__ = "hoster"
__pattern__ = r"http://[\w\.]*?(sharingmatrix|filesonic)\..*?/file/(([a-z][0-9]+/)?[0-9]+)(/.*)?"
- __version__ = "0.3"
+ __version__ = "0.31"
__description__ = """FilesonicCom und Sharingmatrix Download Hoster"""
__author_name__ = ("jeix","paulking")
__author_mail__ = ("jeix@hasnomail.de","")
@@ -62,7 +62,9 @@ class FilesonicCom(Hoster):
CAPTCHA_TYPE1_PATTERN = r'Recaptcha.create\("(.*?)",'
CAPTCHA_TYPE2_PATTERN = r'id="recaptcha_image"><img style="display: block;" src="(.+)image?c=(.+?)"'
- def init(self):
+ def init(self):
+ if self.account:
+ self.premium = self.account.getAccountInfo(self.user)["premium"]
if not self.premium:
self.chunkLimit = 1
self.multiDL = False
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index 5c893f5df..8aa37c47d 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -54,13 +54,15 @@ class MegauploadCom(Hoster):
__name__ = "MegauploadCom"
__type__ = "hoster"
__pattern__ = r"http://[\w\.]*?(megaupload)\.com/.*?(\?|&)d=[0-9A-Za-z]+"
- __version__ = "0.21"
+ __version__ = "0.22"
__description__ = """Megaupload.com Download Hoster"""
__author_name__ = ("spoob")
__author_mail__ = ("spoob@pyload.org")
def init(self):
self.html = [None, None]
+ if self.account:
+ self.premium = self.account.getAccountInfo(self.user)["premium"]
if not self.premium:
self.multiDL = False