Increate parseable content size
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user