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
This commit is contained in:
schroda
2025-06-12 17:50:18 +02:00
committed by GitHub
parent 1a5d334f6c
commit ee4c852f1b
@@ -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)