From e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 4 Oct 2011 10:52:31 +0200 Subject: plugin cleanups --- module/plugins/hoster/FilefactoryCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/FilefactoryCom.py') diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py index 55bdeb5bf..37b2bb7ce 100644 --- a/module/plugins/hoster/FilefactoryCom.py +++ b/module/plugins/hoster/FilefactoryCom.py @@ -61,7 +61,7 @@ class FilefactoryCom(Hoster): self.req.cj.setCookie("filefactory.com", "ff_locale","") # Load main page - self.html = self.load(self.pyfile.url, ref=False, utf8=True, cookies=True) + self.html = self.load(self.pyfile.url, ref=False, decode=True) # Check offline if re.search(self.FILE_OFFLINE_PATTERN, self.html) is not None: @@ -105,7 +105,7 @@ class FilefactoryCom(Hoster): # This will take us to a wait screen self.log.debug("%s: fetching wait with url [%s]" % (self.__name__, waiturl)) - waithtml = self.load(waiturl, ref=True, utf8=True, cookies=True) + waithtml = self.load(waiturl, decode=True) # Find the wait value and wait wait = int(re.search(self.WAIT_PATTERN, waithtml).group('wait')) -- cgit v1.2.3