diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-06 15:13:01 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-06 15:13:01 +0100 |
commit | 6cb8c84d19066db3ad32f84dff864f058b6a2be9 (patch) | |
tree | 81814243ea1af575567470fc9a11728c693a560d /module | |
parent | Tiny code cosmetics to fix previous ones (diff) | |
download | pyload-6cb8c84d19066db3ad32f84dff864f058b6a2be9.tar.xz |
[SimpleHoster] Fix getDirectLink
Diffstat (limited to 'module')
-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 bd6c69db6..2c95c8b38 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -200,7 +200,7 @@ def timestamp(): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "0.50" + __version__ = "0.51" __pattern__ = r'^unmatchable$' @@ -318,7 +318,7 @@ class SimpleHoster(Hoster): if parseFileInfo(self, url, html)[2] is not 2: try: - return re.search(r"Location\s*:\s*(.+)", self.req.http.header, re.I).group(1) + return re.search(r"Location\s*:\s*(.+)", self.req.http.header, re.I).group(1).strip() #@TODO: Remove .strip() in 0.4.10 except: pass |