forked from indymedia/epicyon
Published date
parent
669a70d0d2
commit
d505132b17
10
newswire.py
10
newswire.py
|
@ -313,10 +313,13 @@ def atomFeedToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
|
|
||||||
publishedDate = parseFeedDate(pubDate)
|
publishedDate = parseFeedDate(pubDate)
|
||||||
if publishedDate:
|
if publishedDate:
|
||||||
|
pubDateStr = str(publishedDate)
|
||||||
|
if not pubDateStr.endswith('+00:00'):
|
||||||
|
pubDateStr += '+00:00'
|
||||||
postFilename = ''
|
postFilename = ''
|
||||||
votesStatus = []
|
votesStatus = []
|
||||||
addNewswireDictEntry(baseDir, domain,
|
addNewswireDictEntry(baseDir, domain,
|
||||||
result, str(publishedDate),
|
result, pubDateStr,
|
||||||
title, link,
|
title, link,
|
||||||
votesStatus, postFilename,
|
votesStatus, postFilename,
|
||||||
description, moderated, mirrored)
|
description, moderated, mirrored)
|
||||||
|
@ -377,10 +380,13 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str,
|
||||||
|
|
||||||
publishedDate = parseFeedDate(pubDate)
|
publishedDate = parseFeedDate(pubDate)
|
||||||
if publishedDate:
|
if publishedDate:
|
||||||
|
pubDateStr = str(publishedDate)
|
||||||
|
if not pubDateStr.endswith('+00:00'):
|
||||||
|
pubDateStr += '+00:00'
|
||||||
postFilename = ''
|
postFilename = ''
|
||||||
votesStatus = []
|
votesStatus = []
|
||||||
addNewswireDictEntry(baseDir, domain,
|
addNewswireDictEntry(baseDir, domain,
|
||||||
result, str(publishedDate),
|
result, pubDateStr,
|
||||||
title, link,
|
title, link,
|
||||||
votesStatus, postFilename,
|
votesStatus, postFilename,
|
||||||
description, moderated, mirrored)
|
description, moderated, mirrored)
|
||||||
|
|
Loading…
Reference in New Issue