summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/KingfilesNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 19:14:58 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 19:14:58 +0200
commit59f743bbfde24d94a16c9fc60095014d66a2cb70 (patch)
treeefa1d8be69a4d4bf34f1fadc8e9c7d072ec09a39 /module/plugins/hoster/KingfilesNet.py
parentNew hoster DropboxCom (diff)
downloadpyload-59f743bbfde24d94a16c9fc60095014d66a2cb70.tar.xz
[SpeedyshareCom] Code cleanup
Diffstat (limited to 'module/plugins/hoster/KingfilesNet.py')
-rw-r--r--module/plugins/hoster/KingfilesNet.py5
1 files changed, 3 insertions, 2 deletions
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("<html>")}) == "is_html":
- self.fail("The downloaded file is html, something went wrong.")
+ check = self.checkDownload({'is_html': re.compile("<html>")})
+ if check == "is_html":
+ self.parseError("Downloaded file is an html file")
getInfo = create_getInfo(KingfilesNet)