aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-01-06 15:34:24 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-01-06 15:34:24 +0100
commitb7ed5eba6603aad24378f6a28e4b89482d0bddde (patch)
treeddfdbae90099cf5f2c4d3d6bce34a35cd0a76d9d
parentutm_* parameters are automatically removed from article's URLs. (diff)
downloadnewspipe-b7ed5eba6603aad24378f6a28e4b89482d0bddde.tar.gz
newspipe-b7ed5eba6603aad24378f6a28e4b89482d0bddde.tar.bz2
newspipe-b7ed5eba6603aad24378f6a28e4b89482d0bddde.zip
Bugfix: variable name.
-rw-r--r--pyaggr3g470r/feedgetter.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index 9c6c240e..fd187fcd 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -103,15 +103,15 @@ class FeedGetter(object):
# remove utm_* parameters
r = requests.get(article.link, timeout=2.0)
parsed_url = urlparse(r.url)
- qd = parse_qs(parsed.query, keep_blank_values=True)
+ qd = parse_qs(parsed_url.query, keep_blank_values=True)
filtered = dict( (k, v) for k, v in qd.iteritems() if not k.startswith('utm_'))
real_url = urlunparse([
- parsed.scheme,
- parsed.netloc,
- parsed.path,
- parsed.params,
+ parsed_url.scheme,
+ parsed_url.netloc,
+ parsed_url.path,
+ parsed_url.params,
urlencode(filtered, doseq=True), # query string
- parsed.fragment
+ parsed_url.fragment
])
except Timeout:
pyaggr3g470r_log.warning("Timeout when getting the real URL of %s." % (article.link,))
bgstack15