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 04-30-2012, 02:03 PM   #391
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@BelgarionNL - if you are new to the plugin your books in calibre do not as yet have a goodreads_id identifier. The plugin has to know which book in calibre maps to which book on your shelf (known as "linking" the books). Once the books have been linked, you don't need to do that step again for a particular book. You can see the goodreads id for a book in the edit metadata dialog (or can display it as a column - see the first post in this thread).

There are various ways of linking books - either via that dialog as you are doing, via ISBN if it is present on the book (and matches your shelf), via the Link book option on the Goodreads Sync menu, or via the Goodreads metadata download plugin. All have slightly different purposes/uses.

It sounds like your starting point is that you have a Goodreads account already, have a bunch of specific editions of books on it, and now want to sync that up against your calibre library. Since you have already chosen a particular goodreads edition to be on your Goodreads shelf, that must now be reconciled with whatever edition you have in your calibre library, and frequently the numbers may not match up (requiring your one-time manual intervention on that dialog). Could be different ISBNs or goodreads ids even if you did have the latter from the metadata plugin.

If however you were like me and had no books on your Goodreads shelves (new to using Goodreads website) then I instead use the "Add to shelf" functionality of the plugin. If you have used the Goodreads metadata download plugin it will have chosen a goodreads id for the book for you. So adding to a shelf then usually involves no double clicks to link ids, and any future syncs from that shelf are also linked. Even this approach is not perfect though - it might be that it is not the edition you want showing on your goodreads shelf (maybe it has no cover, is missing page information or whatever) and so then you need to manually re-link it and update your shelf edition appropriately.

Hope that helps...
kiwidude is offline   Reply With Quote
Old 05-01-2012, 11:51 AM   #392
BelgarionNL
Member
BelgarionNL began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 650
It did thank you very much!

its working and I am happy with it!

this makes it much easier to keep track of books that you've read or still want to read and some might even already be in your calibre that you just forgot about!

thx!
BelgarionNL is offline   Reply With Quote
 
Advertisement
Old 05-03-2012, 05:44 PM   #393
d56alpine
Junior Member
d56alpine began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Location: USA
Device: ipad 2
I've just started using the goodreads plugin and it was working fine a few days ago. Today, I went to add a new ebook to a goodreads shelf and got the following error:


calibre, version 0.8.48
ERROR: Unhandled exception: <b>TypeError</b>:QDialog(QWidget parent=None, Qt.WindowFlags flags=0): argument 1 has unexpected type 'CalibreDbHelper'

Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.dialogs", line 1235, in action_button_clicked
File "calibre_plugins.goodreads_sync.core", line 894, in apply_actions_to_calibre
File "calibre_plugins.goodreads_sync.core", line 927, in _apply_custom_column_changes_to_books
File "site-packages\calibre\gui2\__init__.py", line 277, in error_dialog
File "site-packages\calibre\gui2\dialogs\message_box.py", line 29, in __init__
TypeError: QDialog(QWidget parent=None, Qt.WindowFlags flags=0): argument 1 has unexpected type 'CalibreDbHelper'


What did I do wrong?
d56alpine is offline   Reply With Quote
Old 05-03-2012, 06:15 PM   #394
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.6.6 Released

Changes in this release:
  • Fix bug when error dialog is to be displayed about missing a custom column

@d56alpine - you have hit a bug that must have been in there for a while. It was trying to show you an error message about how you were missing the custom column for the sync rule, and had an error while displaying the error
kiwidude is offline   Reply With Quote
Old 05-07-2012, 04:07 AM   #395
Ravensknight
Serpent Rider
Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.
 
Ravensknight's Avatar
 
Posts: 805
Karma: 5948888
Join Date: Jun 2009
Device: Sony 505, 350; Nook STR; Kindle T, NT4B; Nexus 7; Superpad 10in tablet
So, this plugin adds your Goodread's shelves as tags in Calibre, correct? Does it do anything else? Like import reviews etc?

I've read the first couple of pages here, but I've been up way to long and information just isn't processing real well right now.

Thanks for any simple info dumps...
Ravensknight is offline   Reply With Quote
Old 05-07-2012, 05:14 AM   #396
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
The list of features is in the first post of this thread. Or else install the plugin and read the Help file (or if you dont want to install just downlaod the zip and double-click on the .html help file within it).

Yes it does a lot more than just importing shelves as tags. And yes you can import the rating from your goodreads review and the date read if you use the Sync from shelf column.

If you still can't figure it all out, perhaps you should ask what it is you want to be able to do and we can tell you if that is possible. Or just keep skimming through the thread, at various points people describe what they are using the plugin for, and obviously over time more functionality got added so keep reading until you get back to here
kiwidude is offline   Reply With Quote
Old 05-08-2012, 08:40 PM   #397
Ravensknight
Serpent Rider
Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.
 
Ravensknight's Avatar
 
Posts: 805
Karma: 5948888
Join Date: Jun 2009
Device: Sony 505, 350; Nook STR; Kindle T, NT4B; Nexus 7; Superpad 10in tablet
thanks for replying Kiwi.

Turns out I just needed to sleep about 12hrs before trying to process anything
It is all good now...
Ravensknight is offline   Reply With Quote
Old 05-12-2012, 07:33 PM   #398
myrosia
Junior Member
myrosia began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: kindle
The code does not handle apostrophes properly. Try a book like "spider's revenge" and click "link to goodreads". It will come up as not found. This is because the url is encoded twice in search strings, first with calls to quote_plus, and then to QUrl. The (very simple) fix is to call QUrl.fromEncoded(url) instead of QUrl(url) in a couple of places, and also modify a regexp that strips single quotes from book titles, causing additional search failures.

I've debugged it, and the patch against the latest version that is online is attached (as a txt file since .patch is not an allowed extension). If there is a better way to submit fixes, let me know.
Attached Files
File Type: txt apostrophe.txt (1.8 KB, 44 views)
myrosia is offline   Reply With Quote
Old 05-12-2012, 08:20 PM   #399
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.6.7 Released

Changes in this release:
  • Fix for book titles containing apostrophes for when searching to link books

Thx to myrosia for the patch.
kiwidude is offline   Reply With Quote
Old 05-14-2012, 05:26 PM   #400
cecdc7731
Member
cecdc7731 began at the beginning.
 
cecdc7731's Avatar
 
Posts: 17
Karma: 10
Join Date: Sep 2010
Location: Texas
Device: Kindle 3
Question Goodreads Date started/Date Finished Errors

Has anyone else noticed that the sync for date started/date finished subtracts a day? Is there a fix for this?
cecdc7731 is offline   Reply With Quote
Old 05-14-2012, 06:28 PM   #401
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@cedc7731 - I don't see this behaviour, it all works as expected with identical dates for me?

The only thing I can think of is you have some sort of timezone issue going on with your machine/location that I am not hitting. Perhaps Kovid/chaley may spot this and comment - my code just grabs the date text from the goodreads xml, turns it into the appropriate integers (that can't really go wrong unless goodreads is giving the wrong data back to you) and then does this to turn it into a datetime object:
Code:
        from calibre.utils.date import utc_tz
        return datetime.datetime(year, month, day, tzinfo=utc_tz)
That result value will then be applied to the database custom column (in the new_value variable) using:
Code:
        self.db.set_custom(calibre_id, new_value, label=label, commit=False)
kiwidude is offline   Reply With Quote
Old 05-15-2012, 12:24 AM   #402
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@kiwidude: You want to use parse_only_date() from utils/date.py. Naively creating a utc datetime from a date will cause the month/year to be wrong in some timezones. Note that this function is a relatively recent addition to calibre, so you'd best re-implement it in your plugin for backwards compatibility.

Last edited by kovidgoyal; 05-15-2012 at 07:03 AM.
kovidgoyal is online now   Reply With Quote
Old 05-15-2012, 05:36 AM   #403
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Thanks Kovid, I'll take a look at that.
kiwidude is offline   Reply With Quote
Old 05-17-2012, 07:03 PM   #404
Ravensknight
Serpent Rider
Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.
 
Ravensknight's Avatar
 
Posts: 805
Karma: 5948888
Join Date: Jun 2009
Device: Sony 505, 350; Nook STR; Kindle T, NT4B; Nexus 7; Superpad 10in tablet
From reading through, it seems most people update Goodreads based on their Calibre library. I want to update my Calibre library from Goodreads.

How do I go about syncing the date read for my books? From Goodreads to Calibre.
I've searched "date added" but everything seemed to be about updating GR from the Calibre library.
Ravensknight is offline   Reply With Quote
Old 05-17-2012, 07:11 PM   #405
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Ravensknight - Take a look at the help file included in the plugin. Specifically you are interested in the "Sync from shelf" functionality, since you want to synchronise data from your Goodreads shelf into calibre.

In the configuration dialog, select the shelf you want to sync the date read from, click the "Edit Sync Actions" button, and then tick the "Sync date read from Goodreads when syncing from this shelf" option. Then back on the main configuration dialog in the "Synchronisable Custom Columns" section, make sure you set the Date read column to whatever your custom column is in calibre you want the date put into.

Now you can use the sync from shelf feature in the right-click/toolbar menu of this plugin, select that shelf, and any books which are "linked" via their goodreads id will have their data updated in calibre when you click ok.
kiwidude 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] Open With kiwidude Plugins 251 12-15-2014 01:07 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 32 09-13-2014 11:34 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 9 08-12-2014 04:36 AM
[GUI Plugin] Search the Internet kiwidude Plugins 205 08-11-2014 03:22 PM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 08:47 PM


All times are GMT -4. The time now is 10:14 PM.


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