summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-13 14:53:58 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-13 14:53:58 +0100
commit99f3e73c86c84a39d3f83611d53c8fccc1b7305f (patch)
tree22cbfaae2b81bd53afdd11fedfd92ef0c1c2e0d4 /module/plugins/internal/SimpleHoster.py
parent[MultiHoster] Revert CHECK_TRAFFIC to False (diff)
downloadpyload-99f3e73c86c84a39d3f83611d53c8fccc1b7305f.tar.xz
[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1039
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 4c3d376ca..0c8d7c5ae 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -2,6 +2,7 @@
import re
+from datetime import datetime, timedelta
from inspect import isclass
from os.path import exists
from time import time
@@ -188,7 +189,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "0.96"
+ __version__ = "0.97"
__pattern__ = r'^unmatchable$'
@@ -446,7 +447,7 @@ class SimpleHoster(Hoster):
elif not self.lastDownload or not exists(fs_encode(self.lastDownload)):
self.lastDownload = ""
- self.fail(self.pyfile.error or _("No file downloaded"))
+ self.error(self.pyfile.error or _("No file downloaded"))
else:
rules = {'empty file': re.compile(r'\A\Z'),