diff options
| -rw-r--r-- | module/plugins/hoster/DevhostSt.py | 19 | 
1 files changed, 14 insertions, 5 deletions
| 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:</span> <div title="(?P<N>.+?)"' -    SIZE_PATTERN = r'>Size:</span> (?P<S>[\d.,]+) (?P<U>[\w^_]+)' +    NAME_PATTERN      = r'<span title="(?P<N>.*?)"' +    SIZE_PATTERN      = r'</span> \((?P<S>[\d.,]+) (?P<U>[\w^_]+)\)<br' +    HASHSUM_PATTERN   = r'>(?P<T>.*?) Sum</span>:  (?P<H>.*?)<br' -    OFFLINE_PATTERN = r'>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) | 
