mirror of https://gitlab.com/bashrc2/epicyon
Full url in rss link
parent
ea3211e8ed
commit
71a36ec3ee
|
@ -164,7 +164,10 @@ def getRSSfromDict(baseDir: str, newswire: {},
|
||||||
continue
|
continue
|
||||||
rssStr += '<item>\n'
|
rssStr += '<item>\n'
|
||||||
rssStr += ' <title>' + fields[0] + '</title>\n'
|
rssStr += ' <title>' + fields[0] + '</title>\n'
|
||||||
rssStr += ' <link>' + fields[1] + '</link>\n'
|
url = fields[1]
|
||||||
|
if domainFull not in url:
|
||||||
|
url = httpPrefix + '://' + domainFull + url
|
||||||
|
rssStr += ' <link>' + url + '</link>\n'
|
||||||
|
|
||||||
rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT")
|
rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT")
|
||||||
rssStr += ' <pubDate>' + rssDateStr + '</pubDate>\n'
|
rssStr += ' <pubDate>' + rssDateStr + '</pubDate>\n'
|
||||||
|
|
Loading…
Reference in New Issue