summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-12-12 00:42:18 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-12-12 00:42:18 +0900
commit4aba8c380b57ee05415dc0b275b8ce9dd8b7dafb (patch)
tree927c976b7bef9594c21f5751ae6aa516389b088a /src
parent9ff89acf756b932cf380018445371dda688ee5ea (diff)
downloadfead-4aba8c380b57ee05415dc0b275b8ce9dd8b7dafb.tar.gz
Fix matching of content:encoded in RSS 0.1.3
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fead.py4
1 files 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 <https://www.gnu.org/licenses/>.
 
-__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