From 4aba8c380b57ee05415dc0b275b8ce9dd8b7dafb Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 12 Dec 2022 00:42:18 +0900 Subject: Fix matching of content:encoded in RSS --- src/fead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fead.py b/src/fead.py index 2d14b3b..370b623 100755 --- a/src/fead.py +++ b/src/fead.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -__version__ = '0.1.2' +__version__ = '0.1.3' from argparse import ArgumentParser, FileType, HelpFormatter from asyncio import gather, open_connection, run @@ -83,7 +83,7 @@ def parse_rss_item(xml): time = parsedate_to_datetime(child.text) elif child.tag == 'description': description = child.text - elif child.tag == 'content:encoded' and not description: + elif child.tag.endswith('}encoded') and not description: description = child.text if not description: description = xml.text -- cgit 1.4.1