Increate parseable content size

This commit is contained in:
vas3k
2020-01-10 09:28:01 +01:00
parent 61a3f3485f
commit a06f3cdfa8
2 changed files with 2 additions and 2 deletions

View File

@@ -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"]

View File

@@ -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 %}
</span>
{% endif %}