<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Google Books android script</title>
	<atom:link href="http://craigloftus.net/blog/2010/07/29/google-books-android-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/</link>
	<description></description>
	<lastBuildDate>Thu, 13 Oct 2011 18:44:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mac</title>
		<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/comment-page-1/#comment-6629</link>
		<dc:creator>Mac</dc:creator>
		<pubDate>Tue, 12 Jul 2011 20:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://craigloftus.net/blog/?p=71#comment-6629</guid>
		<description>An ISBN is not always an integer, but may have an &quot;X&quot; as a check &quot;digit&quot; in last place (at least if it&#039;s an ISBN-10). Therefore
isbn = int(result[&#039;extras&#039;][&#039;SCAN_RESULT&#039;])
is wrong. You should use a string here.
http://en.wikipedia.org/wiki/International_Standard_Book_Number</description>
		<content:encoded><![CDATA[<p>An ISBN is not always an integer, but may have an &#8220;X&#8221; as a check &#8220;digit&#8221; in last place (at least if it&#8217;s an ISBN-10). Therefore<br />
isbn = int(result['extras']['SCAN_RESULT'])<br />
is wrong. You should use a string here.<br />
<a href="http://en.wikipedia.org/wiki/International_Standard_Book_Number" rel="nofollow">http://en.wikipedia.org/wiki/International_Standard_Book_Number</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/comment-page-1/#comment-3874</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Tue, 05 Oct 2010 15:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://craigloftus.net/blog/?p=71#comment-3874</guid>
		<description>@Phyllis: This is the correct behaviour. The script is written such that when you select &#039;upload&#039; the books that you&#039;ve scanned are added to Google Books and the list is cleaned out; returning you to the scripts initial state. The script only exits when you select &#039;Exit&#039;. If you want it to exit after uploading add &#039;i = False&#039; after &#039;service.queue = {}&#039; in the while loop at the bottom of the script.

@Ilan: There are various versions of the get_by_barcode() function around on the sl4a site, I basically chose one that worked with the barcode scanner I have installed... 

As for the categories, I agree about the adding to favourites not really being desirable but unfortunately I don&#039;t know of a way of setting categories. There may be a way of doing it using the GBooks concept of a shelf but this isn&#039;t implemented at a high level in the sl4a gbooks api layer; when I looked into it I didn&#039;t have the time to implement it myself.</description>
		<content:encoded><![CDATA[<p>@Phyllis: This is the correct behaviour. The script is written such that when you select &#8216;upload&#8217; the books that you&#8217;ve scanned are added to Google Books and the list is cleaned out; returning you to the scripts initial state. The script only exits when you select &#8216;Exit&#8217;. If you want it to exit after uploading add &#8216;i = False&#8217; after &#8216;service.queue = {}&#8217; in the while loop at the bottom of the script.</p>
<p>@Ilan: There are various versions of the get_by_barcode() function around on the sl4a site, I basically chose one that worked with the barcode scanner I have installed&#8230; </p>
<p>As for the categories, I agree about the adding to favourites not really being desirable but unfortunately I don&#8217;t know of a way of setting categories. There may be a way of doing it using the GBooks concept of a shelf but this isn&#8217;t implemented at a high level in the sl4a gbooks api layer; when I looked into it I didn&#8217;t have the time to implement it myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phyllis</title>
		<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/comment-page-1/#comment-3870</link>
		<dc:creator>Phyllis</dc:creator>
		<pubDate>Tue, 05 Oct 2010 05:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://craigloftus.net/blog/?p=71#comment-3870</guid>
		<description>Thanks for the script.
The dialog box, &quot;Another?&quot; keeps coming back up when I press &quot;upload.&quot;  Any idea why?  
Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for the script.<br />
The dialog box, &#8220;Another?&#8221; keeps coming back up when I press &#8220;upload.&#8221;  Any idea why?<br />
Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilan</title>
		<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/comment-page-1/#comment-3692</link>
		<dc:creator>Ilan</dc:creator>
		<pubDate>Tue, 14 Sep 2010 21:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://craigloftus.net/blog/?p=71#comment-3692</guid>
		<description>This did not work for me,
in def get_by_barcode(self):

if result is not True:
      return(False)

was always returning false, even (and I did not have any other case) when it found the book, so I removed it, and the code started working.

a question: is there a way to select to which category the books will be added? I have some book shelfs and there are some by default.

It always adds to favorites and thats not quite right for me.
Thanks</description>
		<content:encoded><![CDATA[<p>This did not work for me,<br />
in def get_by_barcode(self):</p>
<p>if result is not True:<br />
      return(False)</p>
<p>was always returning false, even (and I did not have any other case) when it found the book, so I removed it, and the code started working.</p>
<p>a question: is there a way to select to which category the books will be added? I have some book shelfs and there are some by default.</p>
<p>It always adds to favorites and thats not quite right for me.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/comment-page-1/#comment-3571</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Mon, 23 Aug 2010 15:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://craigloftus.net/blog/?p=71#comment-3571</guid>
		<description>Argon0,

I&#039;m afraid I don&#039;t have time to port this to produce a proper app; if I did I would have already done so ;).

As I state in the post, I consider the code to be in public domain, so if it is useful please feel free to take it as your own.

Craig</description>
		<content:encoded><![CDATA[<p>Argon0,</p>
<p>I&#8217;m afraid I don&#8217;t have time to port this to produce a proper app; if I did I would have already done so <img src='http://craigloftus.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>As I state in the post, I consider the code to be in public domain, so if it is useful please feel free to take it as your own.</p>
<p>Craig</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Argon0</title>
		<link>http://craigloftus.net/blog/2010/07/29/google-books-android-script/comment-page-1/#comment-3570</link>
		<dc:creator>Argon0</dc:creator>
		<pubDate>Mon, 23 Aug 2010 11:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://craigloftus.net/blog/?p=71#comment-3570</guid>
		<description>Have you published, or thought to publish, this as an app?

At the moment I am looking for an app to be a front end to Google Books on my Android, to enter stuff (as your script seems to do) and to retrieve stuff.

Ideally to create a catalogue on my Android which syncs with my Google Books Library...

Argon0</description>
		<content:encoded><![CDATA[<p>Have you published, or thought to publish, this as an app?</p>
<p>At the moment I am looking for an app to be a front end to Google Books on my Android, to enter stuff (as your script seems to do) and to retrieve stuff.</p>
<p>Ideally to create a catalogue on my Android which syncs with my Google Books Library&#8230;</p>
<p>Argon0</p>
]]></content:encoded>
	</item>
</channel>
</rss>

