From 5e6168637363aa3d2f8fb1e17698e1b1235f0ad6 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 18 Mar 2017 23:43:28 -1000 Subject: [PATCH] Only use full feed for articles & feedify Sometimes using referrer and/or useragent makes some dumb websites return diferent content (hello feedburner) --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 3c4d7ae..f3d268c 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -348,7 +348,7 @@ def FeedFetch(url, options): delay = 0 try: - con = crawler.custom_handler('xml', True, delay, options.encoding).open(url, timeout=TIMEOUT * 2) + con = crawler.custom_handler('xml', True, delay, options.encoding, not feedify.supported(url)).open(url, timeout=TIMEOUT * 2) # feedify.supported(url) to use full crawler if using feedify xml = con.read() except (IOError, HTTPException):