Significantly improve browsing speed (near instantaneous) (#1946)

This commit is contained in:
AntsyLich
2025-03-31 13:17:22 +06:00
committed by GitHub
parent 77e79233ab
commit c8ffabc84a
14 changed files with 139 additions and 123 deletions
@@ -69,22 +69,6 @@ fun Manga.copyFrom(other: SManga): Manga {
)
}
fun SManga.toDomainManga(sourceId: Long): Manga {
return Manga.create().copy(
url = url,
title = title,
artist = artist,
author = author,
description = description,
genre = getGenres(),
status = status.toLong(),
thumbnailUrl = thumbnail_url,
updateStrategy = update_strategy,
initialized = initialized,
source = sourceId,
)
}
fun Manga.hasCustomCover(coverCache: CoverCache = Injekt.get()): Boolean {
return coverCache.getCustomCoverFile(id).exists()
}