diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 18:52:42 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 18:52:42 +0100 |
commit | 2e9b625a215835841bc283cf1f7275a88ea8161b (patch) | |
tree | 9d5806e15fb747ed2d68756703733555ab75dcb4 /module/plugins/internal | |
parent | [XFSHoster] Improve ERROR_PATTERN + revert direct link detection in getDownlo... (diff) | |
download | pyload-2e9b625a215835841bc283cf1f7275a88ea8161b.tar.xz |
[SimpleHoster] Fix statusMap generator for python 2.5
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index a39531b82..ea298cc39 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -16,7 +16,7 @@ from module.utils import fixup, parseFileSize #@TODO: Adapt and move to PyFile in 0.4.10 -statusMap = {v: k for k, v in _statusMap.iteritems()} +statusMap = dict((v, k) for k, v in _statusMap.iteritems()) #@TODO: Remove in 0.4.10 and redirect to self.error instead @@ -126,7 +126,7 @@ def _getDirectLink(self, url): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "0.59" + __version__ = "0.60" __pattern__ = r'^unmatchable$' |