diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 18:55:09 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 18:55:09 +0200 |
commit | ca5eb403dd6797a3517f6eb5aae7922f586c5c45 (patch) | |
tree | 881e2f896f4b356b8199f4d1c565efbf6abedd35 | |
parent | Fix https://github.com/pyload/pyload/issues/1578 (2) (diff) | |
download | pyload-ca5eb403dd6797a3517f6eb5aae7922f586c5c45.tar.xz |
Fix http://forum.pyload.org/viewtopic.php?f=12&t=4410
-rw-r--r-- | module/plugins/internal/Hoster.py | 4 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index f3b78a348..15344b86b 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -47,7 +47,7 @@ def create_getInfo(klass): class Hoster(Plugin): __name__ = "Hoster" __type__ = "hoster" - __version__ = "0.07" + __version__ = "0.08" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -448,7 +448,7 @@ class Hoster(Plugin): return self.last_download - def check_download(self, rules, delete=False, file_size=0, size_tolerance=2048, read_size=100000): + def check_download(self, rules, delete=False, file_size=0, size_tolerance=1024, read_size=100000): """ Checks the content of the last downloaded file, re match is saved to `lastCheck` diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 3f88dfbcc..7a220415c 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -24,7 +24,7 @@ statusMap = dict((v, k) for k, v in _statusMap.items()) class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.74" + __version__ = "1.75" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -316,6 +316,7 @@ class SimpleHoster(Hoster): elif self.check_download({'Empty file': re.compile(r'\A((.|)(\2|\s)*)\Z')}, file_size=self.info['size'] if 'size' in self.info else 0, + size_tolerance=10240, delete=True): self.error(_("Empty file")) |