diff options
| author | 2010-06-20 17:17:47 +0200 | |
|---|---|---|
| committer | 2010-06-20 17:17:47 +0200 | |
| commit | 56ed29b85429010f5860cd62ad1b50002b11c6b0 (patch) | |
| tree | c506767a3cd0175909de3063d29d6a6e0e9635a1 /module/plugins | |
| parent | workaround for ExternalScripts.py package location (diff) | |
| download | pyload-56ed29b85429010f5860cd62ad1b50002b11c6b0.tar.xz | |
fix fix fix
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/Hoster.py | 32 | ||||
| -rw-r--r-- | module/plugins/container/DLC_26.pyc | bin | 7757 -> 7757 bytes | |||
| -rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 3 | 
3 files changed, 34 insertions, 1 deletions
| diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index 0ed528924..75f925587 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -27,3 +27,35 @@ class Hoster(Plugin):      __description__ = """Base hoster plugin"""      __author_name__ = ("mkaay")      __author_mail__ = ("mkaay@mkaay.de") +     +    def preparePlugin(self, thread): +        self.thread = thread +        self.usePremium = False +     +    def getFileName(self): +        try: +            return re.findall("([^\/=]+)", self.pyfile.url)[-1] +        except: +            return self.pyfile.url[:20] +     +    def isOnline(self): +        return True +     +    def multiDownload(self): +        return True +     +    def prepareDownload(self): +        pass +     +    def startDownload(self): +        self.req.download(self.pyfile.url, self.pyfile.folder) +     +    def verifyDownload(self): +        return True +     +    def wait(self, until=None, reconnect=False): +        self.pyfile.status.want_reconnect = reconnect +        self.pyfile.status.waituntil = until +        if not until: +            self.pyfile.status.waituntil = 0 +         diff --git a/module/plugins/container/DLC_26.pyc b/module/plugins/container/DLC_26.pycBinary files differ index 840d043a7..5c8c98088 100644 --- a/module/plugins/container/DLC_26.pyc +++ b/module/plugins/container/DLC_26.pyc diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 13d240bb4..f7ef3d4f1 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -99,7 +99,8 @@ class ShareonlineBiz(Hoster):                  sleep(3)                  self.html[1] = self.load(url, post={"captchacode": captcha}, cookies=True)                  if re.search(r"no slots available", self.html[1]): -                    self.time_plus_wait = time() + 60 +                    self.time_plus_wait = time() + 120 +                    self.logger.debug("%s: no free slots, waiting 120 seconds" % (self.__name__))                      return False                  if re.search(r"Der Download ist Ihnen zu langsam", self.html[1]):                      self.time_plus_wait = time() + 15 | 
