Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
add support for firmware version 5.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed Apr 23, 2016
1 parent d97efd4 commit d87f232
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 33 deletions.
8 changes: 8 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2016-04-23 21:06 chrox

* add support for firmware version 5.7.4

2015-12-02 19:23 chrox

* add support for firmware version 5.6.5

2015-05-16 17:19 chrox

* add support for firmware version 5.6.2
Expand Down
64 changes: 33 additions & 31 deletions README_FIRST.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
KPVBooklet for Kindle Touch, Kindle Paperwhite and Kindle Voyage
=================================================

KPVBooklet is a Kindle booklet for starting KOReader.
It also updates last access and percentage finished information in Kindle's
content catalog entry of the opened document.

Supported firmware versions are:
* Kindle Touch 5.1.2
* Kindle Paperwhite 5.2.0
* Kindle Paperwhite 5.3.0
* Kindle Paperwhite 5.3.1
* Kindle Touch 5.3.2
* Kindle Touch 5.3.2.1
* Kindle Paperwhite 5.3.3
* Kindle Paperwhite 5.3.4
* Kindle Paperwhite 5.3.5
* Kindle Paperwhite 5.3.6
* Kindle Touch 5.3.7
* Kindle Paperwhite 5.3.8
* Kindle Paperwhite 5.3.9
* Kindle Paperwhite 5.4.0
* Kindle Paperwhite 5.4.2
* Kindle Paperwhite 5.4.3
* Kindle Paperwhite 5.4.4
* Kindle Touch2 5.6.0
* Kindle Voyage 5.6.1
* Kindle Voyage 5.6.2

KPVBooklet is licensed under the MIT license. See the file
LICENSE for more details.
KPVBooklet for Kindle Touch, Kindle Paperwhite and Kindle Voyage
=================================================

KPVBooklet is a Kindle booklet for starting KOReader.
It also updates last access and percentage finished information in Kindle's
content catalog entry of the opened document.

Supported firmware versions are:
* Kindle Touch 5.1.2
* Kindle Paperwhite 5.2.0
* Kindle Paperwhite 5.3.0
* Kindle Paperwhite 5.3.1
* Kindle Touch 5.3.2
* Kindle Touch 5.3.2.1
* Kindle Paperwhite 5.3.3
* Kindle Paperwhite 5.3.4
* Kindle Paperwhite 5.3.5
* Kindle Paperwhite 5.3.6
* Kindle Touch 5.3.7
* Kindle Paperwhite 5.3.8
* Kindle Paperwhite 5.3.9
* Kindle Paperwhite 5.4.0
* Kindle Paperwhite 5.4.2
* Kindle Paperwhite 5.4.3
* Kindle Paperwhite 5.4.4
* Kindle Touch2 5.6.0
* Kindle Voyage 5.6.1
* Kindle Voyage 5.6.2
* Kindle Voyage 5.6.5
* Kindle Voyage 5.7.4

KPVBooklet is licensed under the MIT license. See the file
LICENSE for more details.
2 changes: 1 addition & 1 deletion build-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

HACKNAME="kpvbooklet"
PKGNAME="${HACKNAME}"
PKGVER="0.6.2"
PKGVER="0.6.3"

# We need kindletool (https://github.com/NiLuJe/KindleTool) in $PATH
if (( $(kindletool version | wc -l) == 1 )) ; then
Expand Down
2 changes: 2 additions & 0 deletions mimes.install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ INSERT OR IGNORE INTO "properties" VALUES('archive.displaytags.mimetypes','appli
INSERT OR IGNORE INTO "associations" VALUES('com.lab126.generic.extractor','extractor','GL:*.zip','true');
INSERT OR IGNORE INTO "associations" VALUES('com.github.koreader.kpvbooklet','application','MT:application/zip','true');

UPDATE "associations" SET defaultAssoc = 'false' WHERE interface = 'application' and contentId = 'MT:application/pdf' and handlerId = 'com.lab126.booklet.reader';
UPDATE "associations" SET defaultAssoc = 'true' WHERE interface = 'application' and contentId = 'MT:application/pdf' and handlerId = 'com.github.koreader.kpvbooklet';
2 changes: 2 additions & 0 deletions mimes.uninstall.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ DELETE FROM "properties" WHERE value='FB2' OR value='PDB' OR value='RTF' OR valu
DELETE FROM "associations" WHERE contentId='GL:*.djvu' OR contentId='GL:*.epub' OR contentId='GL:*.cbz' OR contentId='GL:*.chm';
DELETE FROM "associations" WHERE contentId='GL:*.doc' OR contentId='GL:*.fb2' OR contentId='GL:*.pdb' OR contentId='GL:*.rtf';
DELETE FROM "associations" WHERE contentId='GL:*.tcr' OR contentId='GL:*.xps' OR contentId='GL:*.zip';

UPDATE "associations" SET defaultAssoc = 'true' WHERE interface = 'application' and contentId = 'MT:application/pdf' and handlerId = 'com.lab126.booklet.reader';
3 changes: 2 additions & 1 deletion src/com/github/chrox/kpvbooklet/KPVBooklet.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public void start(URI contentURI) {
int dot = path.lastIndexOf('.');
String ext = (dot == -1) ? "" : path.substring(dot+1).toLowerCase();
if (ext.equals("pdf")) {
if ( contentURI.getQuery() != null ) {
String query = contentURI.getQuery();
if (query != null && query.indexOf("action=goto") >= 0) {
log("I: Opening " + path + " with native reader...");
super.start(contentURI);
return;
Expand Down

0 comments on commit d87f232

Please sign in to comment.