public static void testGetBookInfo () {
try {
long bookId = 2023013;
DoubanBookMovieMusicService service = new DoubanBookMovieMusicService();
DoubanSubjectObj book = service.getMusicInfoById(2272292);
System.out.println("title : " + book.getTitle());
for (DoubanTagObj tag : book.getTags()) {
System.out.println("tag, count : " + tag.getCount() + " , name : " + tag.getName());
}
System.out.println("rating, min : " + book.getRating().getMin() + ", max : " + book.getRating().getMax() + " , value : " + book.getRating().getValue() + " , count : " + book.getRating().getNumberOfRaters() + " , avg : " + book.getRating().getAverage());
System.out.println("author : " + book.getAuthors().get(0).getName());
for (DoubanAttributeObj att : book.getAttributes()) {
System.out.println("att, name : " + att.getName() + " , value : " + att.getValue());
}
System.out.println("summary : " + book.getSummary());
} catch (DoubanException ex) {
Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex);
}