summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:36:54 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:36:54 +0100
commite7d5b4df7c5b0bc859175d4d1902207f91964f89 (patch)
tree38eed096fff72e9efd9e55848587811db683bc6b /module/plugins/internal/SimpleHoster.py
parent"New Year" Update: hoster plugins (diff)
downloadpyload-e7d5b4df7c5b0bc859175d4d1902207f91964f89.tar.xz
[SimpleHoster] Better checkDownload rules
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 991dc6240..5450f2bc9 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -445,7 +445,7 @@ class SimpleHoster(Hoster):
else:
rules = {'empty file': re.compile(r'\A\Z'),
'html file' : re.compile(r'\A\s*<!DOCTYPE html'),
- 'html error': re.compile(r'\A\s*(<.+>)?\d{3}[^\d]*')}
+ 'html error': re.compile(r'\A\s*(<.+>)?\d{3}(\Z|\s+)')}
if hasattr(self, 'ERROR_PATTERN'):
rules['error'] = re.compile(self.ERROR_PATTERN)