diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-13 14:53:58 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-13 14:53:58 +0100 |
commit | 99f3e73c86c84a39d3f83611d53c8fccc1b7305f (patch) | |
tree | 22cbfaae2b81bd53afdd11fedfd92ef0c1c2e0d4 | |
parent | [MultiHoster] Revert CHECK_TRAFFIC to False (diff) | |
download | pyload-99f3e73c86c84a39d3f83611d53c8fccc1b7305f.tar.xz |
[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1039
-rw-r--r-- | module/plugins/hoster/UnrestrictLi.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/hoster/UnrestrictLi.py b/module/plugins/hoster/UnrestrictLi.py index 52f12b5b8..e87f9b97f 100644 --- a/module/plugins/hoster/UnrestrictLi.py +++ b/module/plugins/hoster/UnrestrictLi.py @@ -2,8 +2,6 @@ import re -from datetime import datetime, timedelta - from module.common.json_layer import json_loads from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo from module.plugins.internal.SimpleHoster import secondsToMidnight 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'), |