summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-04 23:46:59 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-04 23:46:59 +0200
commit2c288567c807000b9fa87f3e312d3a2afac1dbe3 (patch)
treeff12d41a5d60af4642ae59a93b45f92b1bc87e56 /module/plugins
parentSome fixes (2) (diff)
parentUpdate SimpleHoster.py (diff)
downloadpyload-2c288567c807000b9fa87f3e312d3a2afac1dbe3.tar.xz
Merge pull request #1708 from estaban/patch-5
Download deleted because of file size mismatch
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/SimpleHoster.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 8d4100026..91d5fe4b3 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -310,9 +310,11 @@ class SimpleHoster(Hoster):
self.captcha.invalid()
self.retry(10, reason=_("Wrong captcha"))
+ # 10485760 is 10MB, tolerance is used when comparing displayed size on the hoster website to real size
+ # For example displayed size can be 1.46GB for example, but real size can be 1.4649853GB
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=1048576,
+ size_tolerance=10485760,
delete=True):
self.error(_("Empty file"))