RSS 1.0 header

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