mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Fixed zim file size issue in library section
This commit is contained in:
parent
c34c0c201e
commit
db195f8d3d
@ -92,7 +92,11 @@ class ZimFileReader constructor(
|
||||
null
|
||||
}
|
||||
val id: String get() = jniKiwixReader.uuid
|
||||
val fileSize: Long get() = jniKiwixReader.filesize
|
||||
/*
|
||||
libzim returns file size in kib so we need to convert it into bytes.
|
||||
More information here https://github.com/kiwix/java-libkiwix/issues/41
|
||||
*/
|
||||
val fileSize: Long get() = jniKiwixReader.filesize / 1024
|
||||
val creator: String get() = jniKiwixReader.getMetadata("Creator")
|
||||
val publisher: String get() = jniKiwixReader.getMetadata("Publisher")
|
||||
val name: String get() = jniKiwixReader.getMetadata("Name")?.takeIf(String::isNotEmpty) ?: id
|
||||
|
Loading…
x
Reference in New Issue
Block a user