summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-15 17:35:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-15 17:35:48 +0200
commita0805f27015748638a5fb05fd55b746852c53362 (patch)
tree1f56b476ae3ce998f62abe1617303319b04f1c3f /module/network
parenthagg's rapidshare patch (diff)
downloadpyload-a0805f27015748638a5fb05fd55b746852c53362.tar.xz
html_unescape function, little plugin improvements
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPRequest.py3
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)