From 013b114d1562da0a55abb3080dca625f1a49a122 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 20 Sep 2010 10:15:49 +0200 Subject: MU premium --- module/plugins/hoster/MegauploadCom.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'module/plugins/hoster/MegauploadCom.py') diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index 94c845a08..3712bb8d5 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -59,17 +59,23 @@ class MegauploadCom(Hoster): def process(self, pyfile): self.pyfile = pyfile - self.download_html() - self.download_api() + if not self.account: + self.download_html() + self.download_api() - if not self.file_exists(): - self.offline() + if not self.file_exists(): + self.offline() - self.setWait(45) - self.wait() + self.setWait(45) + self.wait() - pyfile.name = self.get_file_name() - self.download(self.get_file_url()) + pyfile.name = self.get_file_name() + self.download(self.get_file_url()) + + else: + self.download_api() + pyfile.name = self.get_file_name() + self.download(pyfile.url) def download_html(self): for i in range(5): -- cgit v1.2.3