snowmtl extension error fix: dynamic retrieval (#1531)

* dynamic retrieval

* ktlint errors fixed

* reinstated comments
This commit is contained in:
Chiru-Dey
2025-07-22 00:42:57 +05:30
committed by GitHub
parent f8c2b9ffb0
commit 3ff29aa38a
2 changed files with 13 additions and 4 deletions

View File

@@ -112,11 +112,14 @@ object Page {
if (pageEntry[PageTable.imageUrl] == null) {
val trueImageUrl = getTrueImageUrl(tachiyomiPage, source)
transaction {
PageTable.update({ (PageTable.chapter eq chapterId) and (PageTable.index eq index) }) {
it[imageUrl] = trueImageUrl
if (trueImageUrl.length <= 2048) {
transaction {
PageTable.update({ (PageTable.chapter eq chapterId) and (PageTable.index eq index) }) {
it[imageUrl] = trueImageUrl
}
}
}
tachiyomiPage.imageUrl = trueImageUrl
}
val fileName = getPageName(index, chapterEntry[ChapterTable.pageCount])