From 658f51e5a9ad0db8bd8f7b70f56127b82f3f5a86 Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 16 Sep 2013 00:33:24 +0200 Subject: [PATCH] Support feeds handed out as text/html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and are on an equal footing… --- morss.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/morss.py b/morss.py index 84e453e..66a983d 100644 --- a/morss.py +++ b/morss.py @@ -385,8 +385,7 @@ def Gather(url, cachePath, progress=False): except (urllib2.URLError, httplib.HTTPException, socket.timeout): return False - if con.info().type in ['text/xml', 'application/xml', 'application/rss+xml', - 'application/rdf+xml', 'application/atom+xml']: + if xml[:5] == '