mirror of https://gitlab.com/bashrc2/epicyon
RSS 1.0 header
parent
83dcc00ee4
commit
77210c0f41
|
@ -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 = {}
|
||||||
|
|
Loading…
Reference in New Issue