Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2012, 11:52 AM   #331
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Obviously not currently

I just had a quick look at the Goodreads API, and they do have support for working with "owned" books:
http://www.goodreads.com/api#owned_books.create

Of course whether I want to add support to this plugin is another issue . Talk me into it - how would you ideally want to see it working, given how you know the plugin works today?
kiwidude is offline   Reply With Quote
Old 02-10-2012, 01:40 PM   #332
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,337
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Quote:
Originally Posted by kiwidude View Post
Obviously not currently

I just had a quick look at the Goodreads API, and they do have support for working with "owned" books:
http://www.goodreads.com/api#owned_books.create

Of course whether I want to add support to this plugin is another issue . Talk me into it - how would you ideally want to see it working, given how you know the plugin works today?

Personally I would like to be able to set a default in the configuration that would allow the user to select to have books automatically set as owned or not, that way every time I add books to my shelves they would automatically be added as owned. Or if that is not possible, an option on the add feature that let's the user select whether the book is owned or not.

Personally I would not need a feature to have the plugin remove books from being owned, but not sure if others would want such a feature.

Nyn
nynaevelan is offline   Reply With Quote
Old 02-11-2012, 09:45 AM   #333
ArniVidar
Junior Member
ArniVidar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: Kindle Keyboard
Hey KiwiDude. Loving your GR plugin here, but I found a strange bug and I was wondering if you could help me figure out what's the matter?

I am syncing from my Read shelf on Goodroads, to my custom created Read column in Calibre. The Read column is a Y/N kinda thing, and works splendidly. I've linked and synchronized a few hundred books with no problems today. However, when I try to link and sync the last batch of books (perhaps the last 40-50 or so) I get an error:

Code:
calibre, version 0.8.39
ERROR: Unhandled exception: <b>TypeError</b>:list indices must be integers, not unicode

Traceback (most recent call last):
  File "calibre_plugins.goodreads_sync.action", line 300, in sync_shelves
  File "calibre_plugins.goodreads_sync.action", line 349, in _update_calibre_database_ids_after_sync
  File "site-packages\calibre\library\database2.py", line 3097, in set_isbn
  File "site-packages\calibre\library\database2.py", line 3049, in set_identifier
  File "site-packages\calibre\library\database2.py", line 3025, in get_identifiers
TypeError: list indices must be integers, not unicode
Do you have any clue as to what might be going on, and how I might go about fixing it?
ArniVidar is offline   Reply With Quote
Old 02-11-2012, 10:17 AM   #334
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@ArniVidar - welcome to MobileRead.

Now that looks an interesting one, it looks like the Calibre database code is not liking the value of the ISBN that is being passed through. I have two suggestions:

(1) See if you can isolate it down to a specific book that is causing the issue. If you can do that, and give me all the info you can on it (existing ISBN/goodreads id it has if any, any info you see on screen when you click the Sync button etc) I can try to replicate it.

(2) Alternatively, what I would hope would work (but not help figure out the cause) is to go to the Customise plugin dialog and change your setting for "When linking to goodreads" to "Never modify the Calibre ISBN".

Let me know how you get on.
kiwidude is offline   Reply With Quote
Old 02-11-2012, 03:01 PM   #335
ArniVidar
Junior Member
ArniVidar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: Kindle Keyboard
Hey, thanks and sorry for the late reply. I kept waiting for my email notification about a reply, but it turns out I had forgotten to set this thread to Instant Notifications

I've had the plugin set to only update ISBN if it's missing from Calibre, and it's producing this error.

I'll see if I can isolate an offending book for you to experiment with, and then I'll change the setting to see if that makes a difference. I'll get back to you on that.
ArniVidar is offline   Reply With Quote
Old 02-11-2012, 03:56 PM   #336
ArniVidar
Junior Member
ArniVidar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: Kindle Keyboard
Well crap.. I can't find a book for you to test.

The thing is, today has been all about matching Goodreads with Calibre, so I've been doing some extensive cleaning on both ends, deleting (and creating ) duplicates back and forth.

My theory is that the books that were causing these problems were books where there was one copy on Goodreads and two copies in Calibre, and then upon syncing I linked first to book A and then on the next sync I linked to book B.

As I was also deleting books between syncing actions (in both places) these duplicates slowly disappeared... which would explain why I can get the error again and again when I run the same books again and again, but if I run a few at a time (getting bored and doing some cleaning on Goodreads in the meanwhile) I can run through all the ones that gave me problems before in smaller batches without getting errors.

Hmm... if that makes ANY sense
ArniVidar is offline   Reply With Quote
Old 02-12-2012, 08:28 AM   #337
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.6.3 Released

Changes in this release:
  • Add a Switch edition dialog for a linked book to allow picking another edition for page count/cover purposes
  • Also allow access to the switch edition dialog from the linked book screen.

There are a couple of circumstances where you will find yourself switching goodreads editions, such as wanting one that has a page count or with a cover. This new feature offers another way of doing this that should be easier than the manual steps otherwise required.

If a book is already linked to goodreads, then you can just use the new Switch edition menu item. If the book is not linked at all, you can use the standard Link to Goodreads dialog, pick the search result you like and then click on the new Switch Edition button to narrow it down.
Attached Thumbnails
Click image for larger version

Name:	screenshot_8_switch_edition.png
Views:	53
Size:	39.0 KB
ID:	82487  
kiwidude is offline   Reply With Quote
Old 02-12-2012, 08:58 AM   #338
Noughty
Addict
Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.
 
Posts: 352
Karma: 103850
Join Date: Apr 2011
Device: Kindle NT
Thanks for new feature. I often changed between editions as sometimes even the blurb was missing from one but not the other. Glad we can choose which edition now
Noughty is offline   Reply With Quote
Old 02-12-2012, 09:20 AM   #339
ArniVidar
Junior Member
ArniVidar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: Kindle Keyboard
Very cool, thank you. I was thinking about that lack of feature yesterday, because I sometimes clicked the wrong book and found no way to choose a different one, so I had to cancel out of the entire syncing process and start anew
ArniVidar is offline   Reply With Quote
Old 02-12-2012, 10:11 AM   #340
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Cheers folks, glad you see it as useful.

@ArniVidar - shouldn't need to cancel out of the sync process, because you can always "re-link" a book, regardless of whether it is already linked or not from that screen. Anyways, hopefully you find a workflow you are happy with now.

It can still get a little clumsy when you already have a book added to your Goodreads shelves and then want to switch editions, but I don't have a solution for that (other than get the edition you want right before you start syncing it anywhere else!).

So I see this feature as probably most useful to someone using the latest (beta) of the Count Pages plugin, where you don't have the book on any Goodreads shelves (may not even use Goodreads shelves for that matter) but do want the ability to switch to an edition which has a page count. Or equally for someone who has not yet added a book to their shelves and wants to refine the match.
kiwidude is offline   Reply With Quote
Old 02-12-2012, 10:55 AM   #341
ArniVidar
Junior Member
ArniVidar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: Kindle Keyboard
Quote:
Originally Posted by kiwidude View Post
@ArniVidar - shouldn't need to cancel out of the sync process, because you can always "re-link" a book, regardless of whether it is already linked or not from that screen.
Well, my memory sucks and my attention span wavers, so I knew that if I didn't fix it immediately I would forget it immediately. Thus, it was better to have to re-link 50 books to get that one right, than it would have been to forget it and leave it incorrect

Quote:
Originally Posted by kiwidude View Post
Anyways, hopefully you find a workflow you are happy with now.
Thanks. I spent some quality time with your Goodreads and Duplicates plugins yesterday, and I think near the end of that 12 hour marathon I managed to figure out a workflow that works
ArniVidar is offline   Reply With Quote
Old 02-12-2012, 11:12 AM   #342
Noughty
Addict
Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.
 
Posts: 352
Karma: 103850
Join Date: Apr 2011
Device: Kindle NT
Tried the changing of editions and works great. I like that you can see editions and page numbers.

Hope maybe it can be put into simple linking too (to see which edition is chosen), but I usually download goodreads ID with metadata so I rarely need to link manually. And now it's easy to change editions.

The only problem could be in changing edition while in goodreads it remains the old edition. So you need to change both. Maybe there is a way to check which edition is on the shelves? I often add books on goodreads manually (like my to buy list or the books added before I started using calibre or the books I see my friends reading etc) so edition in calibre and goodreads are often different. Downloading/syncing often shows which since you get no results for those books. Unless you end up with duplicates on goodreads. Which can be removed in batch edit in case somebody doesn't know. And again you need to see which edition is in calibre/ which to keep.
Noughty is offline   Reply With Quote
Old 02-12-2012, 11:12 AM   #343
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Haha - yes there does get a bit of an incentive to organise a workflow as the hours tick by...

Was it you had made a donation today btw? If so, thanks for that as it is very timely. I made the mistake of rolling over when I woke up this morning and stuck my elbow into my Kindle screen (where it was lying from falling asleep reading last night). Needless to say the resounding crack that occurred and the dismay of it being completely knackered work me up completely fairly quickly after that.
kiwidude is offline   Reply With Quote
Old 02-12-2012, 11:15 AM   #344
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Noughty - the "problem" you refer to is exactly the scenario I described in my previous post as still being "clumsy". I don't have a more elegant solution, and AFAIK there is no API call for "switch edition".
kiwidude is offline   Reply With Quote
Old 02-12-2012, 11:20 AM   #345
Noughty
Addict
Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.
 
Posts: 352
Karma: 103850
Join Date: Apr 2011
Device: Kindle NT
Sorry for your kindle and I don't think it's clumsy . It does the job. Even when downloading metadata/linking books you can end up with wrong edition, but it's not hard to check. And if you add a dupe in goodreads it's also easy to check with batch edit. So it's not really a problem if there is a solution.

Already tried changing metadata because of the page count. Works great.
Noughty is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 204 07-13-2014 08:21 PM
[GUI Plugin] Open With kiwidude Plugins 223 07-09-2014 02:42 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 28 04-23-2014 05:24 AM
[GUI Plugin] Clipboard Search kiwidude Plugins 4 09-11-2011 06:14 AM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 05:08 PM.


MobileRead.com is a privately owned, operated and funded community.