main
Bob Mottram 2021-07-03 17:44:07 +01:00
parent 7b55dfcec1
commit eb33747656
1 changed files with 7 additions and 9 deletions

View File

@ -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