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,8 +390,9 @@ def getRSSfromDict(baseDir: str, newswire: {},
description = firstParagraphFromString(fields[4])
rssStr += ' <description>' + description + '</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 += ' <link>' + url + '</link>\n'
rssDateStr = pubDate.strftime("%a, %d %b %Y %H:%M:%S UT")