aboutsummaryrefslogtreecommitdiff
path: root/newspipe/lib/article_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'newspipe/lib/article_utils.py')
-rw-r--r--newspipe/lib/article_utils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/newspipe/lib/article_utils.py b/newspipe/lib/article_utils.py
index 77cea397..5152f008 100644
--- a/newspipe/lib/article_utils.py
+++ b/newspipe/lib/article_utils.py
@@ -77,7 +77,12 @@ def get_article_content(entry):
async def get_article_details(entry, fetch=True):
article_link = entry.get("link")
article_title = html.unescape(entry.get("title", ""))
- if fetch and application.config['CRAWLER_RESOLV'] and article_link or not article_title:
+ if (
+ fetch
+ and application.config["CRAWLER_RESOLV"]
+ and article_link
+ or not article_title
+ ):
try:
# resolves URL behind proxies (like feedproxy.google.com)
response = await newspipe_get(article_link, timeout=5)
bgstack15