Handle too long page image urls (#1544)

Attempted fix of 3ff29aa38a might not work, because there is no guarantee that the extension supports retrieving a specific page.
This commit is contained in:
schroda
2025-07-26 01:42:00 +02:00
committed by GitHub
parent 7cab4b9229
commit e3338211d6
4 changed files with 26 additions and 14 deletions

View File

@@ -112,14 +112,11 @@ object Page {
if (pageEntry[PageTable.imageUrl] == null) {
val trueImageUrl = getTrueImageUrl(tachiyomiPage, source)
if (trueImageUrl.length <= 2048) {
transaction {
PageTable.update({ (PageTable.chapter eq chapterId) and (PageTable.index eq index) }) {
it[imageUrl] = trueImageUrl
}
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])