From 931ceb0ef94b88e6acda005fdb1010cea6903411 Mon Sep 17 00:00:00 2001 From: openaudible Date: Mon, 28 May 2018 20:48:06 -0700 Subject: [PATCH] update help, change summary from description --- src/main/help/index.html | 5 +++-- src/main/java/org/openaudible/audible/BookPageParser.java | 4 +--- .../openaudible/desktop/swt/manager/views/SummaryPanel.java | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/help/index.html b/src/main/help/index.html index 088c86e..2ab65ff 100644 --- a/src/main/help/index.html +++ b/src/main/help/index.html @@ -3,10 +3,10 @@ - OpenAudible Desktop Help + OpenAudible Help -

OpenAudible Desktop App

+

OpenAudible Help

This open source app aims to let Audible users enhance their experience maximizing their audible library.

Please respect copyright owners by not distributing MP3 files created with OpenAudible.

@@ -63,6 +63,7 @@

Help

+

This may stop working at any time, due to changes in Audible systems or web site. If this happens, check for an update.

No technical support is provided. Use at your own risk. Open Source additions are welcome.

Suggestions welcome by sending issue or pull request.

diff --git a/src/main/java/org/openaudible/audible/BookPageParser.java b/src/main/java/org/openaudible/audible/BookPageParser.java index f1bd13c..086abaf 100644 --- a/src/main/java/org/openaudible/audible/BookPageParser.java +++ b/src/main/java/org/openaudible/audible/BookPageParser.java @@ -92,16 +92,14 @@ public enum BookPageParser { switch(k) { case "description": - elem = BookElement.description; + elem = BookElement.summary; // our summary is the description break; case "sku": - // elem = BookElement.product_id; break; case "duration": // format is like "PT11H19M" .. skipping for now. - break; case "productID": diff --git a/src/main/java/org/openaudible/desktop/swt/manager/views/SummaryPanel.java b/src/main/java/org/openaudible/desktop/swt/manager/views/SummaryPanel.java index 9d01ca4..18bb7ec 100644 --- a/src/main/java/org/openaudible/desktop/swt/manager/views/SummaryPanel.java +++ b/src/main/java/org/openaudible/desktop/swt/manager/views/SummaryPanel.java @@ -54,6 +54,7 @@ public class SummaryPanel implements BookListener { } private void update(Book book) { + summary.setText(book != null ? book.getSummary() : ""); }