summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DevhostSt.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
commit2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch)
treec33c610c953a7833adfe8e357417e73b1d5231d4 /module/plugins/hoster/DevhostSt.py
parentparseError -> error now calls Fail instead Exception (diff)
downloadpyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/DevhostSt.py')
-rw-r--r--module/plugins/hoster/DevhostSt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/DevhostSt.py b/module/plugins/hoster/DevhostSt.py
index 5c9055ca0..6ad6a551f 100644
--- a/module/plugins/hoster/DevhostSt.py
+++ b/module/plugins/hoster/DevhostSt.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DevhostSt(SimpleHoster):
__name__ = "DevhostSt"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}'
@@ -35,7 +35,7 @@ class DevhostSt(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error("Download link not found")
dl_url = m.group(1)
self.logDebug("Download URL = " + dl_url)
@@ -43,7 +43,7 @@ class DevhostSt(SimpleHoster):
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error("Downloaded file is an html file")
getInfo = create_getInfo(DevhostSt)