summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar zapp-brannigan <zapp-brannigan@users.noreply.github.com> 2015-02-05 13:47:03 +0100
committerGravatar zapp-brannigan <zapp-brannigan@users.noreply.github.com> 2015-02-05 13:47:03 +0100
commit3cd3896dd84907efd031a00e3a59ab576f590c19 (patch)
treebbcbaafd902ce17b563b49c6f9d99b0ab9e3742d
parent[GoogledriveCom] Fixed syntax error (diff)
downloadpyload-3cd3896dd84907efd031a00e3a59ab576f590c19.tar.xz
[Hoster] Update DevhostSt.py
They have changed their website, the plugin was not working anymore.
-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)