diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-03-10 22:38:17 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-03-10 22:38:17 +0100 |
commit | e113228d008b78ff45db52f4917fef392c38b5e3 (patch) | |
tree | 5ea6f1d76f734bdcf646718b5e77f99d5adf472d | |
parent | [SimpleHoster] Improve checkFile routine (2) (diff) | |
download | pyload-e113228d008b78ff45db52f4917fef392c38b5e3.tar.xz |
[FilerNet] Fix https://github.com/pyload/pyload/issues/1201
-rw-r--r-- | module/plugins/hoster/FilerNet.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/hoster/FilerNet.py b/module/plugins/hoster/FilerNet.py index e790272f4..b8a97d6a1 100644 --- a/module/plugins/hoster/FilerNet.py +++ b/module/plugins/hoster/FilerNet.py @@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class FilerNet(SimpleHoster): __name__ = "FilerNet" __type__ = "hoster" - __version__ = "0.17" + __version__ = "0.18" __pattern__ = r'https?://(?:www\.)?filer\.net/get/\w+' @@ -63,4 +63,10 @@ class FilerNet(SimpleHoster): self.invalidCaptcha() + def checkFile(self, rules={}): + if self.checkDownload({'Html file': re.compile(r'\A\s*<!DOCTYPE html')}): + self.offline() + return super(FilerNet, self).checkFile(rules) + + getInfo = create_getInfo(FilerNet) |