From: Olaf Wintermann Date: Wed, 27 Aug 2025 17:44:58 +0000 (+0200) Subject: fix feed entry content type detection X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=f967fdf09654c8816d7e9689c0bb40f34257e37f;p=rssreader.git fix feed entry content type detection --- 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 } }