Compare commits

...

2 commits

Author SHA1 Message Date
Martin Brodbeck 8ef3238ac3 Push to new version. 2021-08-06 11:03:10 +02:00
Martin Brodbeck 49853f9d2f Do not rely on database column ext.
Since firmware version 6.4 seems to ignore this column, we also look at the file name suffix.
2021-08-06 11:00:16 +02:00
4 changed files with 7 additions and 5 deletions

4
Cargo.lock generated
View file

@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3
[[package]] [[package]]
name = "adler32" name = "adler32"
version = "1.2.0" version = "1.2.0"
@ -170,7 +172,7 @@ checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3"
[[package]] [[package]]
name = "pbdbfixer" name = "pbdbfixer"
version = "0.8.0" version = "0.8.2"
dependencies = [ dependencies = [
"quick-xml", "quick-xml",
"rusqlite", "rusqlite",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "pbdbfixer" name = "pbdbfixer"
version = "0.8.0" version = "0.8.2"
authors = ["Martin Brodbeck <martin@brodbeck-online.de>"] authors = ["Martin Brodbeck <martin@brodbeck-online.de>"]
edition = "2018" edition = "2018"

View file

@ -19,8 +19,8 @@ The best results are achieved when metadata has been carefully maintained with *
## Compatibility ## Compatibility
This program is tested on a PocketBook This program is tested on a PocketBook
- *Touch HD 3* (software version 6.1) - *Touch HD 3* (software version 6.4)
- *Inkpad 3 Pro* (software version 6.3) - *Inkpad 3 Pro* (software version 6.4)
- *Touch Lux 4* (software version 6.3) - *Touch Lux 4* (software version 6.3)
It might work with other PocketBook devices/software versions. Please tell me if it works for you (and do make a backup of the explorer-3.db file before trying!). It might work with other PocketBook devices/software versions. Please tell me if it works for you (and do make a backup of the explorer-3.db file before trying!).

View file

@ -30,7 +30,7 @@ fn get_epubs_from_database(tx: &Transaction) -> Vec<BookEntry> {
ON books.id = btg.bookid ON books.id = btg.bookid
LEFT OUTER JOIN genres LEFT OUTER JOIN genres
ON genres.id = btg.genreid ON genres.id = btg.genreid
WHERE files.storageid = 1 AND books.ext = 'epub' WHERE files.storageid = 1 AND (books.ext = 'epub' OR files.filename LIKE '%.epub')
ORDER BY books.id"#, ORDER BY books.id"#,
) )
.unwrap(); .unwrap();