summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/account/DevhostSt.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/account/DevhostSt.py')
-rw-r--r--pyload/plugins/account/DevhostSt.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugins/account/DevhostSt.py b/pyload/plugins/account/DevhostSt.py
index 4d615cc68..07eaf339a 100644
--- a/pyload/plugins/account/DevhostSt.py
+++ b/pyload/plugins/account/DevhostSt.py
@@ -9,18 +9,19 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DevhostSt(SimpleHoster):
- __name__ = "DevhostSt"
- __type__ = "hoster"
- __version__ = "0.02"
+ __name__ = "DevhostSt"
+ __type__ = "hoster"
+ __version__ = "0.03"
__pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}'
__description__ = """d-h.st hoster plugin"""
- __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
- FILE_NAME_PATTERN = r'>Filename:</span> <div title="(?P<N>.+?)"'
- FILE_SIZE_PATTERN = r'>Size:</span> (?P<S>[\d.]+) (?P<U>\w+)'
+ NAME_PATTERN = r'>Filename:</span> <div title="(?P<N>.+?)"'
+ SIZE_PATTERN = r'>Size:</span> (?P<S>[\d.,]+) (?P<U>[\w^_]+)'
OFFLINE_PATTERN = r'>File Not Found<'
LINK_PATTERN = r'id="downloadfile" href="(.+?)"'
@@ -34,15 +35,14 @@ 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)
self.download(dl_url, disposition=True)
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 page"))
getInfo = create_getInfo(DevhostSt)