]> uap-core.de Git - rssreader.git/commitdiff
fix feed entry content type detection
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 27 Aug 2025 17:44:58 +0000 (19:44 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 27 Aug 2025 17:44:58 +0000 (19:44 +0200)
rss-application/src/main/kotlin/de/unixwork/rssreader/SyncJob.kt

index 2281450d100d952ef6604ea5bf40a9a3bfe07f4a..dee94c9919990e4d39f7a5dee20f988b040904b3 100644 (file)
@@ -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
                                         }
                                     }