From db390b1a2325f2042351b472f5c832fbb192d059 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 Nov 2020 11:04:52 +0000 Subject: [PATCH] Extra check for full url --- newswire.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/newswire.py b/newswire.py index 4fca15a7..7874ecb9 100644 --- a/newswire.py +++ b/newswire.py @@ -390,8 +390,9 @@ def getRSSfromDict(baseDir: str, newswire: {}, description = firstParagraphFromString(fields[4]) rssStr += ' ' + description + '\n' url = fields[1] - if domainFull not in url: - url = httpPrefix + '://' + domainFull + url + if '://' not in url: + if domainFull not in url: + url = httpPrefix + '://' + domainFull + url rssStr += ' ' + url + '\n' rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT")