From f967fdf09654c8816d7e9689c0bb40f34257e37f Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Wed, 27 Aug 2025 19:44:58 +0200 Subject: [PATCH] fix feed entry content type detection --- .../src/main/kotlin/de/unixwork/rssreader/SyncJob.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rss-application/src/main/kotlin/de/unixwork/rssreader/SyncJob.kt b/rss-application/src/main/kotlin/de/unixwork/rssreader/SyncJob.kt index 2281450..dee94c9 100644 --- a/rss-application/src/main/kotlin/de/unixwork/rssreader/SyncJob.kt +++ b/rss-application/src/main/kotlin/de/unixwork/rssreader/SyncJob.kt @@ -55,9 +55,9 @@ class SyncJob { if(content.type == null) { item.contentText = content.value } else { - if(content.type.startsWith("text/html")) { + if(content.type == "html") { item.contentHtml = content.value - } else if(content.type.startsWith("text/plain")) { + } else if(content.type == "text") { item.contentText = content.value } } -- 2.47.3