From e3c1cd8619d3426a52a46959aa386133e1871ff9 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 1 Oct 2013 19:47:06 +0200 Subject: [PATCH] Accept more types as "text" before readability --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index ea52b93..bbd1d1c 100644 --- a/morss.py +++ b/morss.py @@ -347,7 +347,7 @@ def Fill(item, cache, feedurl='/', fast=False): cache.set(link, 'error-http') return True - if con.info().maintype != 'text': + if con.info().type not in MIMETYPE['html'] and con.info().type != 'text/plain': log('non-text page') cache.set(link, 'error-type') return True