From 226ad13061a198d1ee01145cfc7933b8c5aa76c8 Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 16 Jul 2020 22:30:21 -0400 Subject: [PATCH] Include source name in update error log (closes #3482) --- .../eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt index 0e35eb620..597376e5a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt @@ -330,7 +330,7 @@ class LibraryUpdateService( * @return a pair of the inserted and removed chapters. */ fun updateManga(manga: Manga): Observable, List>> { - val source = sourceManager.get(manga.source) ?: return Observable.empty() + val source = sourceManager.getOrStub(manga.source) // Update manga details metadata in the background if (preferences.autoUpdateMetadata()) { @@ -429,7 +429,8 @@ class LibraryUpdateService( destFile.bufferedWriter().use { out -> errors.forEach { (manga, error) -> - out.write("${manga.title}: $error\n") + val source = sourceManager.getOrStub(manga.source) + out.write("${manga.title} ($source): $error\n") } } return destFile