From 71a36ec3ee57754fb771712828823fdee9c852b9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Oct 2020 16:07:06 +0100 Subject: [PATCH] Full url in rss link --- newswire.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index 0d3ddceea..d97969677 100644 --- a/newswire.py +++ b/newswire.py @@ -164,7 +164,10 @@ def getRSSfromDict(baseDir: str, newswire: {}, continue rssStr += '\n' rssStr += ' ' + fields[0] + '\n' - rssStr += ' ' + fields[1] + '\n' + url = fields[1] + if domainFull not in url: + url = httpPrefix + '://' + domainFull + url + rssStr += ' ' + url + '\n' rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT") rssStr += ' ' + rssDateStr + '\n'