From f94f242d382b1600a59e0f6ee3f1a7accc4d6f66 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 14 Dec 2020 17:18:16 +0000 Subject: [PATCH] Rss version --- newswire.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/newswire.py b/newswire.py index 95d357482..56a0043a0 100644 --- a/newswire.py +++ b/newswire.py @@ -328,7 +328,7 @@ def xml2StrToDict(baseDir: str, domain: str, xmlStr: str, if postCtr >= maxPostsPerSource: break if postCtr > 0: - print('Added ' + str(postCtr) + ' rss feed items to newswire') + print('Added ' + str(postCtr) + ' rss 2.0 feed items to newswire') return result @@ -340,7 +340,8 @@ def xml1StrToDict(baseDir: str, domain: str, xmlStr: str, """Converts an xml RSS 1.0 string to a dictionary https://validator.w3.org/feed/docs/rss1.html """ - if ' maxBytes: - print('WARN: rss feed item is too big') + print('WARN: rss 1.0 feed item is too big') + continue + if rssItem.startswith('s>'): continue if '' not in rssItem: continue