Removed Amazon due to AWS terms of use
parent
b7e2376e29
commit
7e8f4ce028
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.eleybourn.bookcatalogue"
|
||||
android:versionName="1.08" android:versionCode="10">
|
||||
android:versionName="1.09" android:versionCode="11">
|
||||
<application android:label="@string/app_name" android:icon="@drawable/logo_bc">
|
||||
<activity android:name=".BookCatalogue"
|
||||
android:label="@string/app_name">
|
||||
|
|
5
README
5
README
|
@ -41,6 +41,11 @@ Features include;
|
|||
case. e.g. "The murder on the links" becomes "The Murder on the Links"
|
||||
* Using ISBN or Barcode scanning will also download a thumbnail (if available)
|
||||
|
||||
New in v1.09
|
||||
* Amazon unfortunately doesn’t allow using their web services (search) on any
|
||||
mobile devices, so this has been disabled until I can come up with a work-around.
|
||||
|
||||
|
||||
New in v1.08
|
||||
* Add by ISBN will now search Amazon as well as Google Books (thanks Sue)
|
||||
* The series field will attempt to guess the value based on Amazon data
|
||||
|
|
BIN
bin/classes.dex
BIN
bin/classes.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -94,19 +94,19 @@ public class BookISBNSearch extends Activity {
|
|||
}
|
||||
/* Get the book */
|
||||
String[] book;
|
||||
String[] bookAmazon;
|
||||
//TODO: RE-IMPLEMENT String[] bookAmazon;
|
||||
book = searchGoogle(isbn);
|
||||
bookAmazon = searchAmazon(isbn);
|
||||
//TODO: RE-IMPLEMENT bookAmazon = searchAmazon(isbn);
|
||||
//Look for series in Title. e.g. Red Phoenix (Dark Heavens Trilogy)
|
||||
book[8] = findSeries(book[1]);
|
||||
bookAmazon[8] = findSeries(bookAmazon[1]);
|
||||
//TODO: RE-IMPLEMENT bookAmazon[8] = findSeries(bookAmazon[1]);
|
||||
|
||||
/* Fill blank fields as required */
|
||||
for (int i = 0; i<book.length; i++) {
|
||||
if (book[i] == "" || book[i] == "0") {
|
||||
book[i] = bookAmazon[i];
|
||||
}
|
||||
}
|
||||
//TODO: RE-IMPLEMENT for (int i = 0; i<book.length; i++) {
|
||||
//TODO: RE-IMPLEMENT if (book[i] == "" || book[i] == "0") {
|
||||
//TODO: RE-IMPLEMENT book[i] = bookAmazon[i];
|
||||
//TODO: RE-IMPLEMENT }
|
||||
//TODO: RE-IMPLEMENT }
|
||||
|
||||
/* Format the output
|
||||
* String[] book = {author, title, isbn, publisher, date_published, rating, bookshelf, read, series, pages, series_num};
|
||||
|
@ -201,7 +201,8 @@ public class BookISBNSearch extends Activity {
|
|||
String[] key_params = {"Keywords", "Operation", "ResponseGroup", "SearchIndex", "Service", "SubscriptionId", "Timestamp"};
|
||||
|
||||
String amazon_url = "http://" + host + path + "?";
|
||||
String sk = "L5IZjd9oIf++JkjwH4/GScWsM3dJ74zOSjF+3IgP";
|
||||
//TODO - INSERT SECRET KEY HERE
|
||||
String sk = "<INSERT SECRET KEY>";
|
||||
String url_params = "";
|
||||
String enc_params = "";
|
||||
for (int i = 0; i<params.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue