aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2014-06-09 15:59:21 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2014-06-09 15:59:21 +0200
commit6e32e137bfc48c138349e86bbf18d379435c300a (patch)
treeea21bacea92a0a267f8286eb12f2d81cefa1a3c4
parentmaking pyagregator runnable by apache (diff)
parentA problem with urllib.quote() has been detected with the url: http://standblo... (diff)
downloadnewspipe-6e32e137bfc48c138349e86bbf18d379435c300a.tar.gz
newspipe-6e32e137bfc48c138349e86bbf18d379435c300a.tar.bz2
newspipe-6e32e137bfc48c138349e86bbf18d379435c300a.zip
fixing parsing for already quoted url as well
-rwxr-xr-xpyaggr3g470r/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py
index 4acaafc8..50549587 100755
--- a/pyaggr3g470r/utils.py
+++ b/pyaggr3g470r/utils.py
@@ -192,7 +192,7 @@ def clean_url(url):
return urlunparse([
parsed_url.scheme,
parsed_url.netloc,
- urllib.quote(parsed_url.path),
+ urllib.quote(urllib.unquote(parsed_url.path)),
parsed_url.params,
urllib.urlencode(filtered, doseq=True),
parsed_url.fragment
bgstack15