/download/redirect/[^"\']+)'
    LIMIT_WAIT_PATTERN = r'\s*.*?(\d+) seconds'
    CAPTCHA_SRC_PATTERN = r'" in self.html:
                self.invalidCaptcha()
            else:
                self.correctCaptcha()
                break
        else: self.fail("Invalid captcha")
        
        self.req.http.lastURL = self.url
        self.req.http.c.setopt(HTTPHEADER, ["X-Requested-With: XMLHttpRequest"])
        
        self.setWait(60, False)
        self.wait()
        
        self.html = self.load("http://turbobit.net/download/getLinkTimeout/" + self.file_info['ID'])
        self.downloadFile()       
    
    def handlePremium(self):
        self.logDebug("Premium download as user %s" % self.user)
        self.downloadFile()
        
    def downloadFile(self):
        found = re.search(self.DOWNLOAD_URL_PATTERN, self.html)
        if not found: self.parseError("download link")        
        self.url = "http://turbobit.net" + found.group('url')
        self.logDebug(self.url)
        self.download(self.url)  
getInfo = create_getInfo(TurbobitNet)