Skip to content

Parser (read and write) for KOReader history and favorites for external usage

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

mahlzahn/koreaderhistfavparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KOReaderHistFavParser

Parser (read and write) for KOReader (Homepage, Github repository) history, favorites and book status for external usage in Android applications

Documentation

Latest documentation of the Java classes on the master branch of the KOReaderHistFavParser GitHub repository can be found at mahlzahn.github.io/koreaderhistfavparser/docs.

Usage

import org.koreaderhistfavparser.KOReaderBook;
import org.koreaderhistfavparser.KOReaderHistFav;

...

String koreaderDirectoryPath = "path/to/settings/koreader";  // optional argument to KOReaderHistFav
KOReaderHistFav koreaderHistFav = new KOReaderHistFav(koreaderDirectoryPath);

KOReaderHistFav.addBookToHistory("/path/to/ebook1");    // adds ebook1 to history and internal library
KOReaderHistFav.addBookToFavorites("/path/to/ebook2");  // adds ebook2 to favorites and internal library
KOReaderHistFav.addBookToFavorites("/path/to/ebook1");  // adds ebook1 to favorites (already in library)

ArrayList<KOReaderBook> history = KOReaderHistFav.getHistory();        // returns ebook1
ArrayList<KOReaderBook> favorites = KOReaderHistFav.getFavorites();    // returns ebook1 and ebook2
HashMap<String, KOReaderBook> library = KOReaderHistFav.getLibrary();  // returns ebook1 and ebook2

...

KOReaderHistFav.removeBookFromHistory("/path/to/ebook1");  // removes ebook1 from history but keeps in
                                                           // favorites and internal library
KOReaderHistFav.removeBookFromLibrary("/path/to/ebook2");  // removes ebook2 from favorites and library

License

This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

See details in the COPYING file.

About

Parser (read and write) for KOReader history and favorites for external usage

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published