Support xml starting with \s

master
pictuga 2017-02-25 19:04:32 -10:00
parent e0f533ca31
commit dc8423550f
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ def Fetch(url, options):
log('itunes redirect: %s' % link) log('itunes redirect: %s' % link)
return Fetch(link, options) return Fetch(link, options)
elif xml.startswith(b'<?xml') or contenttype in MIMETYPE['xml']: elif re.match(b'\s*<?xml', xml) is not None or contenttype in MIMETYPE['xml']:
rss = feeds.parse(xml) rss = feeds.parse(xml)
elif feedify.supported(url): elif feedify.supported(url):