aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-14 12:24:27 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-14 12:24:27 +0100
commit3d091baa4292c8145564b345492fb60d6db72a52 (patch)
tree0ca93b688810f1768c9db9a1dbff2acb0e2ee0a9 /src/web
parentUpdated CHANGELOG. (diff)
downloadnewspipe-3d091baa4292c8145564b345492fb60d6db72a52.tar.gz
newspipe-3d091baa4292c8145564b345492fb60d6db72a52.tar.bz2
newspipe-3d091baa4292c8145564b345492fb60d6db72a52.zip
article URL resolving has been removed (wasn't used)
Diffstat (limited to 'src/web')
-rw-r--r--src/web/lib/article_utils.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/web/lib/article_utils.py b/src/web/lib/article_utils.py
index 176f6a98..46bb9461 100644
--- a/src/web/lib/article_utils.py
+++ b/src/web/lib/article_utils.py
@@ -1,5 +1,4 @@
import logging
-import requests
import dateutil.parser
from datetime import datetime
@@ -53,15 +52,6 @@ def construct_article(entry, feed):
content = get_article_content(entry)
article_link = entry.get('link')
- if conf.RESOLVE_ARTICLE_URL and article_link:
- try:
- # resolves URL behind proxies
- # (like feedproxy.google.com)
- response = requests.get(article_link, verify=False, timeout=5.0)
- article_link = response.url
- except Exception as error:
- logger.warning("Unable to get the real URL of %s. Error: %s",
- article_link, error)
return {'feed_id': feed['id'],
'user_id': feed['user_id'],
bgstack15