diff options
author | 2015-02-07 23:24:51 +0100 | |
---|---|---|
committer | 2015-02-07 23:24:51 +0100 | |
commit | 43ee4da730bbc18a24c4d721565298fca16ce077 (patch) | |
tree | 99c2beb2debd43cc809a7e131e4d94bb536c4afb | |
parent | [RestartSlow] Bump up version (diff) | |
download | pyload-43ee4da730bbc18a24c4d721565298fca16ce077.tar.xz |
[DevhostSt] Cleanup
-rw-r--r-- | module/plugins/hoster/DevhostSt.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/module/plugins/hoster/DevhostSt.py b/module/plugins/hoster/DevhostSt.py index 0a66083ba..d786ba135 100644 --- a/module/plugins/hoster/DevhostSt.py +++ b/module/plugins/hoster/DevhostSt.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # Test links: -# http://d-h.st/mM8 +# http://d-h.st/mM8 import re @@ -24,21 +24,13 @@ class DevhostSt(SimpleHoster): 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'var product_download_url= \'(.*?)\';' + OFFLINE_PATTERN = r'>File Not Found' + LINK_FREE_PATTERN = r'var product_download_url= \'(.+?)\'' def setup(self): - self.multiDL = True + 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) |