From a06f3cdfa82c701c409c88c47097704b3daf7447 Mon Sep 17 00:00:00 2001 From: vas3k Date: Fri, 10 Jan 2020 09:28:01 +0100 Subject: [PATCH] Increate parseable content size --- scripts/update.py | 2 +- templates/board.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update.py b/scripts/update.py index 4b48a8b..9ce8be7 100644 --- a/scripts/update.py +++ b/scripts/update.py @@ -29,7 +29,7 @@ DEFAULT_NUM_WORKER_THREADS = 5 DEFAULT_ENTRIES_LIMIT = 100 MIN_REFRESH_DELTA = timedelta(minutes=30) REQUEST_TIMEOUT = 10 -MAX_PARSABLE_CONTENT_LENGTH = 5 * 1024 * 1024 # 5Mb +MAX_PARSABLE_CONTENT_LENGTH = 15 * 1024 * 1024 # 15Mb NEWSPAPER_CONFIG = Config() NEWSPAPER_CONFIG.browser_user_agent = DEFAULT_REQUEST_HEADERS["User-Agent"] diff --git a/templates/board.html b/templates/board.html index 03a6daa..ea422d9 100644 --- a/templates/board.html +++ b/templates/board.html @@ -67,7 +67,7 @@ {% if article.summary %} {{ article.summary|striptags|nl2br|truncatechars:400|safe }} {% else %} - {{ article.description|truncatechars:400 }} + {{ article.description|striptags|truncatechars:400 }} {% endif %} {% endif %}