summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-07 22:20:46 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-07 22:20:46 +0100
commit337ba91fbf6c1f2645911d0a51019e26f64da05a (patch)
tree0a8387510ab2fffc78bf51057f487a745a94bf04 /module/plugins
parentMerge pull request #1144 from immenz/dev_restartslow (diff)
parent[Hoster] Update DevhostSt.py (diff)
downloadpyload-337ba91fbf6c1f2645911d0a51019e26f64da05a.tar.xz
Merge pull request #1146 from zapp-brannigan/patch-2
[Hoster] Update DevhostSt.py
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/DevhostSt.py19
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>: &nbsp;(?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)