mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-12 23:34:34 -05:00
snowmtl extension error fix: dynamic retrieval (#1531)
* dynamic retrieval * ktlint errors fixed * reinstated comments
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user