From 452e955a1e3e9fd9c3a5f76312d9fd9969e8003c Mon Sep 17 00:00:00 2001 From: Safihre Date: Fri, 25 Aug 2017 22:59:31 +0200 Subject: [PATCH] Disable extra features of feedparser NZB-feeds do not contain the properties that feedparser has fancy parsing for. The reduces the time spent in feedparser by 40%. Linked #679 --- sabnzbd/utils/feedparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sabnzbd/utils/feedparser.py b/sabnzbd/utils/feedparser.py index 544f42e..69fb427 100644 --- a/sabnzbd/utils/feedparser.py +++ b/sabnzbd/utils/feedparser.py @@ -76,11 +76,11 @@ RESOLVE_RELATIVE_URIS = 1 # If you want feedparser to automatically sanitize all potentially unsafe # HTML content, set this to 1. -SANITIZE_HTML = 1 +SANITIZE_HTML = 0 # If you want feedparser to automatically parse microformat content embedded # in entry contents, set this to 1 -PARSE_MICROFORMATS = 1 +PARSE_MICROFORMATS = 0 # ---------- Python 3 modules (make it work if possible) ---------- try: