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] == '