diff options
| author | 2014-12-10 19:29:13 +0100 | |
|---|---|---|
| committer | 2014-12-10 19:29:13 +0100 | |
| commit | d8cc7dac4e76f3ee10641b17f58994edb09c3695 (patch) | |
| tree | 209afd8cb79919bab83babb1084d6555ab720453 /pyload/plugins/account/DevhostSt.py | |
| parent | [RapiduNet] Improve account plugin (diff) | |
| download | pyload-d8cc7dac4e76f3ee10641b17f58994edb09c3695.tar.xz | |
Fix bad merge
Diffstat (limited to 'pyload/plugins/account/DevhostSt.py')
| -rw-r--r-- | pyload/plugins/account/DevhostSt.py | 48 | 
1 files changed, 0 insertions, 48 deletions
| diff --git a/pyload/plugins/account/DevhostSt.py b/pyload/plugins/account/DevhostSt.py deleted file mode 100644 index 5be211809..000000000 --- a/pyload/plugins/account/DevhostSt.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Test links: -# http://d-h.st/mM8 - -import re - -from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo - - -class DevhostSt(SimpleHoster): -    __name    = "DevhostSt" -    __type    = "hoster" -    __version = "0.03" - -    __pattern = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}' - -    __description = """d-h.st hoster plugin""" -    __license     = "GPLv3" -    __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^_]+)' - -    OFFLINE_PATTERN = r'>File Not Found<' -    LINK_PATTERN = r'id="downloadfile" href="(.+?)"' - - -    def setup(self): -        self.multiDL = True -        self.chunkLimit = 1 - - -    def handleFree(self): -        m = re.search(self.LINK_PATTERN, self.html) -        if m is None: -            self.error(_("Download link not found")) - -        dl_url = m.group(1) -        self.download(dl_url, disposition=True) - -        check = self.checkDownload({'html': re.compile("html")}) -        if check == "html": -            self.error(_("Downloaded file is an html page")) - - -getInfo = create_getInfo(DevhostSt) | 
