Extra check for full url

main
Bob Mottram 2020-11-08 11:04:52 +00:00
parent 2855af6025
commit db390b1a23
1 changed files with 3 additions and 2 deletions

View File

@ -390,6 +390,7 @@ def getRSSfromDict(baseDir: str, newswire: {},
description = firstParagraphFromString(fields[4]) description = firstParagraphFromString(fields[4])
rssStr += ' <description>' + description + '</description>\n' rssStr += ' <description>' + description + '</description>\n'
url = fields[1] url = fields[1]
if '://' not in url:
if domainFull not in url: if domainFull not in url:
url = httpPrefix + '://' + domainFull + url url = httpPrefix + '://' + domainFull + url
rssStr += ' <link>' + url + '</link>\n' rssStr += ' <link>' + url + '</link>\n'