|
@@ -337,8 +337,8 @@ class LibraryUpdateService(
|
|
if (preferences.autoUpdateMetadata()) {
|
|
if (preferences.autoUpdateMetadata()) {
|
|
source.fetchMangaDetails(manga)
|
|
source.fetchMangaDetails(manga)
|
|
.map { updatedManga ->
|
|
.map { updatedManga ->
|
|
- // Avoid "losing" covers
|
|
|
|
- if (updatedManga.thumbnail_url != null) {
|
|
|
|
|
|
+ // Avoid "losing" existing cover
|
|
|
|
+ if (!updatedManga.thumbnail_url.isNullOrEmpty()) {
|
|
manga.prepUpdateCover(coverCache, updatedManga, false)
|
|
manga.prepUpdateCover(coverCache, updatedManga, false)
|
|
} else {
|
|
} else {
|
|
updatedManga.thumbnail_url = manga.thumbnail_url
|
|
updatedManga.thumbnail_url = manga.thumbnail_url
|