diff options
| author | 2014-12-12 20:34:42 +0100 | |
|---|---|---|
| committer | 2014-12-12 23:11:36 +0100 | |
| commit | b0b4132e13b3de05a9da2c58df1685c7dcb097d3 (patch) | |
| tree | b16eb15011b1b362871980ca890b02a237b3c199 /pyload/plugins/hoster/FilerNet.py | |
| parent | [SimpleHoster] Remove CONTENT_DISPOSITION + Rename parseInfo to parseInfos (diff) | |
| download | pyload-b0b4132e13b3de05a9da2c58df1685c7dcb097d3.tar.xz | |
Update plugins after SimpleHoster changes
Conflicts:
	pyload/plugins/addon/SkipRev.py
	pyload/plugins/hoster/FastshareCz.py
	pyload/plugins/hoster/FileSharkPl.py
	pyload/plugins/hoster/FilerNet.py
	pyload/plugins/hoster/Keep2shareCc.py
Diffstat (limited to 'pyload/plugins/hoster/FilerNet.py')
| -rw-r--r-- | pyload/plugins/hoster/FilerNet.py | 15 | 
1 files changed, 7 insertions, 8 deletions
| diff --git a/pyload/plugins/hoster/FilerNet.py b/pyload/plugins/hoster/FilerNet.py index b17898cd9..16008a232 100644 --- a/pyload/plugins/hoster/FilerNet.py +++ b/pyload/plugins/hoster/FilerNet.py @@ -15,7 +15,7 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class FilerNet(SimpleHoster):      __name    = "FilerNet"      __type    = "hoster" -    __version = "0.09" +    __version = "0.10"      __pattern = r'https?://(?:www\.)?filer\.net/get/\w+' @@ -25,8 +25,6 @@ class FilerNet(SimpleHoster):                         ("Walter Purcaro", "vuolter@gmail.com")] -    CONTENT_DISPOSITION = True -      INFO_PATTERN    = r'<h1 class="page-header">Free Download (?P<N>\S+) <small>(?P<S>[\w.]+) (?P<U>[\w^_]+)</small></h1>'      OFFLINE_PATTERN = r'Nicht gefunden' @@ -66,16 +64,17 @@ class FilerNet(SimpleHoster):              if 'location' in header and header['location']:                  self.correctCaptcha() -                self.link = urljoin('http://filer.net', header['location']) +                self.link = header['location']                  return              else:                  self.invalidCaptcha() -    def handlePremium(self): -        super(FilerNet, self).handlePremium() -        if self.link: -            self.link = urljoin("http://filer.net/", self.link) +    def downloadLink(self, link): +        if not link: +            return + +        self.download(urljoin("http://filer.net/", link), disposition=True)  getInfo = create_getInfo(FilerNet) | 
