Skip to content

Commit

Permalink
Fix RealUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Nov 21, 2024
1 parent 3a932a1 commit a4d9dc3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Manga.kt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,19 @@ object Manga {

it[MangaTable.realUrl] =
runCatching {
(source as? HttpSource)?.getMangaUrl(sManga)
(source as? HttpSource)?.getMangaUrl(
SManga.create().apply {
url = mangaEntry[MangaTable.url]
title = remoteTitle.ifEmpty { mangaEntry[MangaTable.title] }
thumbnail_url = mangaEntry[MangaTable.thumbnail_url]
artist = sManga.artist ?: mangaEntry[MangaTable.artist]
author = sManga.author ?: mangaEntry[MangaTable.author]
description = sManga.description ?: mangaEntry[MangaTable.description]
genre = sManga.genre ?: mangaEntry[MangaTable.genre]
status = sManga.status
update_strategy = sManga.update_strategy
},
)
}.getOrNull()

it[MangaTable.lastFetchedAt] = Instant.now().epochSecond
Expand Down

0 comments on commit a4d9dc3

Please sign in to comment.