summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DevhostSt.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/DevhostSt.py')
-rw-r--r--module/plugins/hoster/DevhostSt.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/module/plugins/hoster/DevhostSt.py b/module/plugins/hoster/DevhostSt.py
index 85e36edb3..2a8734655 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.03"
+ __version__ = "0.04"
__pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}'
@@ -24,7 +24,7 @@ class DevhostSt(SimpleHoster):
SIZE_PATTERN = r'>Size:</span> (?P<S>[\d.,]+) (?P<U>[\w^_]+)'
OFFLINE_PATTERN = r'>File Not Found<'
- LINK_PATTERN = r'id="downloadfile" href="(.+?)"'
+ LINK_FREE_PATTERN = r'id="downloadfile" href="(.+?)"'
def setup(self):
@@ -32,17 +32,4 @@ class DevhostSt(SimpleHoster):
self.chunkLimit = 1
- def handleFree(self):
- m = re.search(self.LINK_PATTERN, self.html)
- if m is None:
- self.error(_("Download link not found"))
-
- dl_url = m.group(1)
- self.download(dl_url, disposition=True)
-
- check = self.checkDownload({'html': re.compile("html")})
- if check == "html":
- self.error(_("Downloaded file is an html page"))
-
-
getInfo = create_getInfo(DevhostSt)