morss: don't follow alt=rss with custom feeds

To have the same page as with :get=page and to avoid shitty feeds
master
pictuga 2020-05-02 19:18:58 +02:00
parent 271ac8f80f
commit b425992783
1 changed files with 1 additions and 1 deletions

View File

@ -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')