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/UploadStationCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/UploadStationCom.py') diff --git a/module/plugins/hoster/UploadStationCom.py b/module/plugins/hoster/UploadStationCom.py index 22af20923..f89ef3ad1 100644 --- a/module/plugins/hoster/UploadStationCom.py +++ b/module/plugins/hoster/UploadStationCom.py @@ -62,7 +62,7 @@ class UploadStationCom(Hoster): def process(self, pyfile): # Get URL - self.html = self.load(self.pyfile.url, ref=False, cookies=True, utf8=True) + self.html = self.load(self.pyfile.url, ref=False, decode=True) # Is offline? m = re.search(UploadStationCom.FILE_OFFLINE_PATTERN, self.html) @@ -84,7 +84,7 @@ class UploadStationCom(Hoster): # self.jsPage = self.load("http://uploadstation.com" + jsPage) # Check download - response = self.load(self.pyfile.url, post={"checkDownload" : "check"}, utf8=True) + response = self.load(self.pyfile.url, post={"checkDownload" : "check"}, decode=True) self.logDebug("Checking download, response [%s]" % response.encode('ascii', 'ignore')) self.handleErrors(response) -- cgit v1.2.3