aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-01-06 15:05:19 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-01-06 15:05:19 +0100
commit5f058ccf37cf4416682249e593f0be260e12831b (patch)
treed444f5d59ddb635e00054c8ba314cd4cf8d1e107 /pyaggr3g470r
parentMinor fix when a feed contains 0 article. (diff)
downloadnewspipe-5f058ccf37cf4416682249e593f0be260e12831b.tar.gz
newspipe-5f058ccf37cf4416682249e593f0be260e12831b.tar.bz2
newspipe-5f058ccf37cf4416682249e593f0be260e12831b.zip
Bug fix in the feedgetter.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/feedgetter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index 71e5b0a8..55564840 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -100,8 +100,9 @@ class FeedGetter(object):
real_url = article.link
try:
r = requests.get(article.link, timeout=2.0)
- parsed_url = urlparse(r.url)
- real_url = parsed_url.scheme + '://' + parsed_url.netloc + parsed_url.path
+ #parsed_url = urlparse(r.url)
+ #real_url = parsed_url.scheme + '://' + parsed_url.netloc + parsed_url.path
+ real_url = r.url
except Timeout:
pyaggr3g470r_log.warning("Timeout when getting the real URL of %s." % (article.link,))
except Exception as e:
bgstack15