A simple Kotlin library to search for ebooks.
Add the library to dependencies
dependencies {
compile 'com.github.lrusso96:simple-biblio:0.6.0'
}
<dependency>
<groupId>com.github.lrusso96</groupId>
<artifactId>simple-biblio</artifactId>
<version>0.6.0</version>
</dependency>
A simple search (with default options) can be run in this way
val biblio = SimpleBiblio.Builder().build()
biblio.searchAll("Carroll")
Otherwise, a more advanced (and custom) search is available
// custom options for first provider
val feedbooks = Feedbooks.Builder()
.addLanguage(Language.ITALIAN)
.build()
// custom options for second provider
val libgen = LibraryGenesisBuilder(
sortingField = Field.TITLE,
sortingMode = Sorting.ASCENDING)
.build()
// build a SimpleBiblio object and get the results
biblio = SimpleBiblio.Builder()
.addProvider(feedbooks)
.addProvider(libgen)
.build()
biblio.searchAll(query)
To get a direct download URI it's sufficient to invoke
ebook.getDownloads()
- clone the repository
- apply changes
- build and test before opening a PR with
./gradlew build
./gradlew test [jacocoTestReport]