From b42599278324949c5e12989f7ad3f7a62954cdba Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 2 May 2020 19:18:58 +0200 Subject: [PATCH] morss: don't follow alt=rss with custom feeds To have the same page as with :get=page and to avoid shitty feeds --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index a93d470..02af065 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -303,7 +303,7 @@ def FeedFetch(url, options): delay = 0 try: - req = crawler.adv_get(url=url, follow='rss', delay=delay, timeout=TIMEOUT * 2) + req = crawler.adv_get(url=url, follow=('rss' if not options.items else None), delay=delay, timeout=TIMEOUT * 2) except (IOError, HTTPException): raise MorssException('Error downloading feed')