diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-01-06 15:05:19 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-01-06 15:05:19 +0100 |
commit | 5f058ccf37cf4416682249e593f0be260e12831b (patch) | |
tree | d444f5d59ddb635e00054c8ba314cd4cf8d1e107 /pyaggr3g470r/feedgetter.py | |
parent | Minor fix when a feed contains 0 article. (diff) | |
download | newspipe-5f058ccf37cf4416682249e593f0be260e12831b.tar.gz newspipe-5f058ccf37cf4416682249e593f0be260e12831b.tar.bz2 newspipe-5f058ccf37cf4416682249e593f0be260e12831b.zip |
Bug fix in the feedgetter.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 5 |
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: |