Skip to content

matthill/librivox-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

librivox-java

Librivox Java is an open-source (Apache license) interface for Librivox web service API. The library is drop-in compatible with Android.

Getting started is easy, the following code snippet downloads a listing of Librivox books (starting with "Count of") and gets the RSS details for the first in the list.

LVoxRestClient client = new LVoxRestClient();

try
{
	
	List<LVoxBook> books = client.searchByTitle("Count of ");
	
	for (LVoxBook book : books)
	{
		System.out.println(book.toString());
	}

	LVoxRSS rss = client.getBookDetails(books.get(0).getUrlRss());
	
	for (LVoxChapter chapter : rss.getChapters())
	{
		System.out.println(chapter.getTitle() + " -- " + chapter.getFileSize());
		System.out.println("  --  " + chapter.getUrl());
	}

}
catch (NDULibraryConnectionException e)
{
	e.printStackTrace();
}
catch (NDULibraryParsingException e)
{
	e.printStackTrace();
}

About

Java library for accessing Librivox content

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages