diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-15 17:35:48 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-15 17:35:48 +0200 |
commit | a0805f27015748638a5fb05fd55b746852c53362 (patch) | |
tree | 1f56b476ae3ce998f62abe1617303319b04f1c3f /module/network | |
parent | hagg's rapidshare patch (diff) | |
download | pyload-a0805f27015748638a5fb05fd55b746852c53362.tar.xz |
html_unescape function, little plugin improvements
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/HTTPRequest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index f90048f4d..7904070e8 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -24,6 +24,7 @@ from urllib import quote, urlencode from logging import getLogger from cStringIO import StringIO +from module.utils import html_unescape from module.plugins.Plugin import Abort def myquote(url): @@ -228,6 +229,8 @@ class HTTPRequest(): #self.log.debug("Decoded %s" % encoding ) decoder = getincrementaldecoder(encoding)("replace") rep = decoder.decode(rep, True) + + #TODO: html_unescape as default except LookupError: self.log.debug("No Decoder foung for %s" % encoding) |