forked from indymedia/epicyon
Extra check for full url
parent
2855af6025
commit
db390b1a23
|
@ -390,8 +390,9 @@ 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 domainFull not in url:
|
if '://' not in url:
|
||||||
url = httpPrefix + '://' + domainFull + url
|
if domainFull not in url:
|
||||||
|
url = httpPrefix + '://' + domainFull + url
|
||||||
rssStr += ' <link>' + url + '</link>\n'
|
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")
|
||||||
|
|
Loading…
Reference in New Issue