From 5a449ab4e98f6001e29d8073bf31f3012c242a9d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 28 Nov 2020 20:46:52 +0000 Subject: [PATCH] Use published rather than updated for youtube feeds --- newswire.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/newswire.py b/newswire.py index 60ef3bee..84e05f9b 100644 --- a/newswire.py +++ b/newswire.py @@ -370,9 +370,9 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str, continue if '' not in atomItem: continue - if '' not in atomItem: + if '' not in atomItem: continue - if '' not in atomItem: + if '' not in atomItem: continue if '' not in atomItem: continue @@ -393,8 +393,8 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str, link = atomItem.split('')[1] link = link.split('')[0] link = 'https://www.youtube.com/watch?v=' + link.strip() - pubDate = atomItem.split('')[1] - pubDate = pubDate.split('')[0] + pubDate = atomItem.split('')[1] + pubDate = pubDate.split('')[0] pubDateStr = parseFeedDate(pubDate) if pubDateStr: