diff options
| author | 2015-01-11 14:54:48 +0100 | |
|---|---|---|
| committer | 2015-01-11 14:54:48 +0100 | |
| commit | d2b60b5ceb369814a0de41c8b8744b5c4ed81523 (patch) | |
| tree | 6619e01fc0e5f281e4d28678ec565860a86784ec /module/plugins/hoster/DevhostSt.py | |
| parent | updated nitroflare.com's plugin (diff) | |
| parent | Code improvements (diff) | |
| download | pyload-d2b60b5ceb369814a0de41c8b8744b5c4ed81523.tar.xz | |
Merged with the updated nitroflare
Diffstat (limited to 'module/plugins/hoster/DevhostSt.py')
| -rw-r--r-- | module/plugins/hoster/DevhostSt.py | 17 | 
1 files changed, 2 insertions, 15 deletions
| diff --git a/module/plugins/hoster/DevhostSt.py b/module/plugins/hoster/DevhostSt.py index 85e36edb3..2a8734655 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.03" +    __version__ = "0.04"      __pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}' @@ -24,7 +24,7 @@ class DevhostSt(SimpleHoster):      SIZE_PATTERN = r'>Size:</span> (?P<S>[\d.,]+) (?P<U>[\w^_]+)'      OFFLINE_PATTERN = r'>File Not Found<' -    LINK_PATTERN = r'id="downloadfile" href="(.+?)"' +    LINK_FREE_PATTERN = r'id="downloadfile" href="(.+?)"'      def setup(self): @@ -32,17 +32,4 @@ class DevhostSt(SimpleHoster):          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) | 
