Browse Source

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
tags/2.3.0Alpha1
Safihre 8 years ago
parent
commit
452e955a1e
  1. 4
      sabnzbd/utils/feedparser.py

4
sabnzbd/utils/feedparser.py

@ -76,11 +76,11 @@ RESOLVE_RELATIVE_URIS = 1
# If you want feedparser to automatically sanitize all potentially unsafe # If you want feedparser to automatically sanitize all potentially unsafe
# HTML content, set this to 1. # HTML content, set this to 1.
SANITIZE_HTML = 1 SANITIZE_HTML = 0
# If you want feedparser to automatically parse microformat content embedded # If you want feedparser to automatically parse microformat content embedded
# in entry contents, set this to 1 # in entry contents, set this to 1
PARSE_MICROFORMATS = 1 PARSE_MICROFORMATS = 0
# ---------- Python 3 modules (make it work if possible) ---------- # ---------- Python 3 modules (make it work if possible) ----------
try: try:

Loading…
Cancel
Save