From ee4c852f1b4b6eba9ee4bac6140f5aaf5691fcb8 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:50:18 +0200 Subject: [PATCH] Always update manga thumbnail on fetch (#1429) It's possible that the cover changed, but the url is still the same. In that case the cover never gets updated unless the downloaded/cached file gets deleted --- server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Manga.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Manga.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Manga.kt index 0daa8ce1..5bfcbf2b 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Manga.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Manga.kt @@ -142,7 +142,7 @@ object Manga { ?: mangaEntry[MangaTable.description] it[MangaTable.genre] = sManga.genre ?: mangaEntry[MangaTable.genre] it[MangaTable.status] = sManga.status - if (!sManga.thumbnail_url.isNullOrEmpty() && sManga.thumbnail_url != mangaEntry[MangaTable.thumbnail_url]) { + if (!sManga.thumbnail_url.isNullOrEmpty()) { it[MangaTable.thumbnail_url] = sManga.thumbnail_url it[MangaTable.thumbnailUrlLastFetched] = Instant.now().epochSecond clearThumbnail(mangaId)