diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt index 8a19d843..4f13e719 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt @@ -150,7 +150,9 @@ object Chapter { index + 1, now, mangaId, - (source as? HttpSource)?.getChapterUrl(fetchedChapter), + runCatching { + (source as? HttpSource)?.getChapterUrl(fetchedChapter) + }.getOrNull(), ) if (chapterEntry == null) { @@ -184,7 +186,6 @@ object Chapter { this[ChapterTable.chapter_number] = it.chapterNumber this[ChapterTable.scanlator] = it.scanlator this[ChapterTable.sourceOrder] = it.index - this[ChapterTable.fetchedAt] = it.fetchedAt this[ChapterTable.realUrl] = it.realUrl } execute(this@transaction)