Allow redirects when getting rss feeds

main
Bob Mottram 2023-08-17 17:46:59 +01:00
parent 7963c36c9e
commit 1257536fae
1 changed files with 1 additions and 1 deletions

View File

@ -1371,7 +1371,7 @@ def get_rss(base_dir: str, domain: str, session, url: str,
session.get(url, headers=session_headers, session.get(url, headers=session_headers,
params=session_params, params=session_params,
timeout=timeout_sec, timeout=timeout_sec,
allow_redirects=False) allow_redirects=True)
if result: if result:
if int(len(result.text) / 1024) >= max_feed_size_kb: if int(len(result.text) / 1024) >= max_feed_size_kb:
print('WARN: feed is too large: ' + url) print('WARN: feed is too large: ' + url)