From 3cd3896dd84907efd031a00e3a59ab576f590c19 Mon Sep 17 00:00:00 2001 From: zapp-brannigan Date: Thu, 5 Feb 2015 13:47:03 +0100 Subject: [Hoster] Update DevhostSt.py They have changed their website, the plugin was not working anymore. --- module/plugins/hoster/DevhostSt.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/DevhostSt.py b/module/plugins/hoster/DevhostSt.py index 2a8734655..0a66083ba 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.04" + __version__ = "0.05" __pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}' @@ -20,16 +20,25 @@ class DevhostSt(SimpleHoster): __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] - NAME_PATTERN = r'>Filename:
Size: (?P[\d.,]+) (?P[\w^_]+)' + NAME_PATTERN = r' \((?P[\d.,]+) (?P[\w^_]+)\)(?P.*?) Sum:  (?P.*?)File Not Found<' - LINK_FREE_PATTERN = r'id="downloadfile" href="(.+?)"' + OFFLINE_PATTERN = r'>File Not Found<' + LINK_FREE_PATTERN = r'var product_download_url= \'(.*?)\';' def setup(self): self.multiDL = True self.chunkLimit = 1 + + def handleFree(self, pyfile): + link = re.search(self.LINK_FREE_PATTERN,self.html) + try: + self.logDebug("DL-Link: %s" % link.group(1)) + self.download(link.group(1), disposition=True) + except AttributeError: + self.error(_("DL-Link not found")) getInfo = create_getInfo(DevhostSt) -- cgit v1.2.3