Fix xml detection regex

Also (dirtily) fixes #18 for now
master
pictuga 2017-11-04 14:21:05 +01:00
parent b7db78f631
commit 2d5bf7b38b
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ def FeedFetch(url, options):
contenttype = con.info().get('Content-Type', '').split(';')[0]
if re.match(b'\s*<?xml', xml) is not None or contenttype in crawler.MIMETYPE['xml']:
if re.match(b'\s*<\?xml', xml) is not None or contenttype in crawler.MIMETYPE['xml']:
rss = feeds.parse(xml)
elif feedify.supported(url):