From 59f743bbfde24d94a16c9fc60095014d66a2cb70 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 28 Sep 2014 19:14:58 +0200 Subject: [SpeedyshareCom] Code cleanup --- module/plugins/hoster/KingfilesNet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/KingfilesNet.py') diff --git a/module/plugins/hoster/KingfilesNet.py b/module/plugins/hoster/KingfilesNet.py index f0e51645a..4d87a5933 100644 --- a/module/plugins/hoster/KingfilesNet.py +++ b/module/plugins/hoster/KingfilesNet.py @@ -86,8 +86,9 @@ class KingfilesNet(SimpleHoster): dl_url = m.group(1) self.download(dl_url, cookies=True, disposition=True) - if self.checkDownload({'is_html': re.compile("")}) == "is_html": - self.fail("The downloaded file is html, something went wrong.") + check = self.checkDownload({'is_html': re.compile("")}) + if check == "is_html": + self.parseError("Downloaded file is an html file") getInfo = create_getInfo(KingfilesNet) -- cgit v1.2.3