RSS 1.0 header

main
Bob Mottram 2020-12-14 20:22:05 +00:00
parent 83dcc00ee4
commit 77210c0f41
1 changed files with 2 additions and 2 deletions

View File

@ -572,7 +572,7 @@ def xmlStrToDict(baseDir: str, domain: str, xmlStr: str,
xmlStr, moderated, mirrored,
maxPostsPerSource, maxFeedItemSizeKb,
maxCategoriesFeedItemSizeKb)
elif '<rdf:RDF>' in xmlStr:
elif '<?xml version="1.0"' in xmlStr:
return xml1StrToDict(baseDir, domain,
xmlStr, moderated, mirrored,
maxPostsPerSource, maxFeedItemSizeKb,
@ -608,7 +608,7 @@ def getRSS(baseDir: str, domain: str, session, url: str,
print('ERROR: getRSS url should be a string')
return None
headers = {
'Accept': 'text/xml; charset=UTF-8'
'Accept': 'text/xml, application/xml; charset=UTF-8'
}
params = None
sessionParams = {}