diff options
| author | 2010-09-20 10:15:49 +0200 | |
|---|---|---|
| committer | 2010-09-20 10:15:49 +0200 | |
| commit | 013b114d1562da0a55abb3080dca625f1a49a122 (patch) | |
| tree | 213c0c2dea09b9ac1b154fbef2b203e0a52a3307 /module/plugins/hoster/MegauploadCom.py | |
| parent | netfolder, hotfile folder (diff) | |
| download | pyload-013b114d1562da0a55abb3080dca625f1a49a122.tar.xz | |
MU premium
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
| -rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 22 | 
1 files changed, 14 insertions, 8 deletions
| 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): | 
