From 5f826f14d0ec8c90359dbe668041c6e0c571aa3f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 1 Jun 2011 10:26:50 +0200 Subject: fixed last commit --- module/network/HTTPChunk.py | 3 +++ module/plugins/hoster/FilesonicCom.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index d1d56c02b..cf77ccae6 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -20,6 +20,7 @@ from os import remove from os.path import exists from time import sleep from re import search +from logging import getLogger import pycurl @@ -138,6 +139,8 @@ class HTTPChunk(HTTPRequest): self.BOMChecked = False # check and remove byte order mark + self.log = getLogger("log") + @property def cj(self): return self.p.cj diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py index 6aabcc277..9fb41dee9 100644 --- a/module/plugins/hoster/FilesonicCom.py +++ b/module/plugins/hoster/FilesonicCom.py @@ -133,7 +133,7 @@ class FilesonicCom(Hoster): if not finalUrl: self.doWait(url) - self.doWait(url) + self.doWait(url) #TODO: why 2 wait? please investigate/fix chall = re.search(self.CAPTCHA_TYPE1_PATTERN, self.html) chall2 = re.search(self.CAPTCHA_TYPE2_PATTERN, self.html) -- cgit v1.2.3