mirror of https://gitlab.com/bashrc2/epicyon
Allow redirects when getting rss feeds
parent
7963c36c9e
commit
1257536fae
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue