Kavita: Add pdf support (#14513)

* Added pdf support

* Changelog and bump
This commit is contained in:
ThePromidius 2022-12-10 16:16:57 +01:00 committed by GitHub
parent 92eeb64539
commit 420b9930a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,11 @@
## 1.3.8 ## 1.3.8
### Features
* Added pdf support
## 1.3.8
### Fix ### Fix
* Fixed `Expected URL scheme 'http' or 'https` when downloading * Fixed `Expected URL scheme 'http' or 'https` when downloading

View File

@ -6,7 +6,7 @@ ext {
extName = 'Kavita' extName = 'Kavita'
pkgNameSuffix = 'all.kavita' pkgNameSuffix = 'all.kavita'
extClass = '.KavitaFactory' extClass = '.KavitaFactory'
extVersionCode = 8 extVersionCode = 9
} }
dependencies { dependencies {

View File

@ -502,7 +502,7 @@ class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSou
pages.add( pages.add(
Page( Page(
index = i, index = i,
imageUrl = "$apiUrl/Reader/image?chapterId=$chapterId&page=$i" imageUrl = "$apiUrl/Reader/image?chapterId=$chapterId&page=$i&extractPdf=true"
) )
) )
} }
@ -708,6 +708,7 @@ class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSou
listOf( listOf(
"Image", "Image",
"Archive", "Archive",
"Pdf",
"Unknown", "Unknown",
).map { FormatFilter(it) } ).map { FormatFilter(it) }
) )