mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 11:07:51 +02:00
Clean up manga restoring logic
Some behavior changes: - It prioritizes new entries, then anything more recently updated - It copies the more recently updated entry's metadata (description, thumbnail, etc.)
This commit is contained in:
@ -6,7 +6,7 @@ import tachiyomi.domain.manga.repository.MangaRepository
|
||||
class GetMangaByUrlAndSourceId(
|
||||
private val mangaRepository: MangaRepository,
|
||||
) {
|
||||
suspend fun awaitManga(url: String, sourceId: Long): Manga? {
|
||||
suspend fun await(url: String, sourceId: Long): Manga? {
|
||||
return mangaRepository.getMangaByUrlAndSourceId(url, sourceId)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user