From fad926c7ecebb445f0a182d9fbd11e731bd98069 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 21 Nov 2020 23:29:46 +0000 Subject: [PATCH] Try media description if description doesn't exist --- newswire.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/newswire.py b/newswire.py index 2eb9f34c..ea4e6397 100644 --- a/newswire.py +++ b/newswire.py @@ -248,6 +248,11 @@ def atomFeedToDict(baseDir: str, domain: str, xmlStr: str, if '' in rssItem and '' in rssItem: description = rssItem.split('')[1] description = description.split('')[0] + else: + if '' in rssItem and \ + '' in rssItem: + description = rssItem.split('')[1] + description = description.split('')[0] link = rssItem.split('')[1] link = link.split('')[0] if '://' not in link: