mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
7b55dfcec1
commit
eb33747656
16
feeds.py
16
feeds.py
|
@ -9,16 +9,14 @@ __module_group__ = "RSS Feeds"
|
||||||
|
|
||||||
|
|
||||||
def rss2TagHeader(hashtag: str, httpPrefix: str, domainFull: str) -> str:
|
def rss2TagHeader(hashtag: str, httpPrefix: str, domainFull: str) -> str:
|
||||||
rssStr = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"
|
return \
|
||||||
rssStr += "<rss version=\"2.0\">"
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" + \
|
||||||
rssStr += '<channel>'
|
"<rss version=\"2.0\">" + \
|
||||||
rssStr += ' <title>#' + hashtag + '</title>'
|
'<channel>' + \
|
||||||
rssStr += ' <link>' + httpPrefix + '://' + domainFull + \
|
' <title>#' + hashtag + '</title>' + \
|
||||||
|
' <link>' + httpPrefix + '://' + domainFull + \
|
||||||
'/tags/rss2/' + hashtag + '</link>'
|
'/tags/rss2/' + hashtag + '</link>'
|
||||||
return rssStr
|
|
||||||
|
|
||||||
|
|
||||||
def rss2TagFooter() -> str:
|
def rss2TagFooter() -> str:
|
||||||
rssStr = '</channel>'
|
return '</channel></rss>'
|
||||||
rssStr += '</rss>'
|
|
||||||
return rssStr
|
|
||||||
|
|
Loading…
Reference in New Issue