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-11-2020, 12:36 PM   #1336
shadowdance
Junior Member
shadowdance began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2020
Device: kindle PW Gen10
i have actually no idea if that is a "good" or "proper" way, but after digging, i found a fix for me:

Code:
diff core.py core_orig.py 
219d218
<         request_token = {key.decode('utf-8'): value.decode('utf-8') for (key, value) in request_token.items()}
230d228
<         access_token= {key.decode('utf-8'): value.decode('utf-8') for (key, value) in access_token.items()}
shadowdance is offline   Reply With Quote
Old 02-11-2020, 08:09 PM   #1337
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 18,629
Karma: 30757200
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by shadowdance View Post
hi,
new user of the plugin here..

When i try to authorize the plugin, I get above error...


Code:
calibre, version 4.99.4
ERROR: Unhandled exception: <b>KeyError</b>:'oauth_token'

calibre 4.99.4  embedded-python: False is64bit: True
Linux-5.4.17-towo.1-siduction-amd64-x86_64-with-debian-bullseye-sid Linux ('64bit', 'ELF')
('Linux', '5.4.17-towo.1-siduction-amd64', '#1 SMP PREEMPT siduction 5.4-17 (2020-02-03)')
Python 3.7.6
Linux: ('debian', 'bullseye/sid', '')
Interface language: None
Successfully initialized third party plugins: BOL_DE (0, 9, 0) && Goodreads Sync (1, 14, 1)
Traceback (most recent call last):
  File "calibre_plugins.goodreads_sync.config", line 1118, in authorize_plugin
  File "calibre_plugins.goodreads_sync.core", line 219, in get_request_token_secret
KeyError: 'oauth_token'
Any ideas on what i can do to fix that (apart learning python)?
I have to admit I haven't tried that with the Python 3 version of calibre. I will tonight.

But, did the GR page get displayed? And did you allow access from plugin? Not doing the latter would give an error, though it should get caught. Could you run calibre in debug mode and post or PM me the log? The logs will show details of the communications with GR and I should be able to see the issue.
davidfor is offline   Reply With Quote
Advert
Old 02-11-2020, 08:20 PM   #1338
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 18,629
Karma: 30757200
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by shadowdance View Post
i have actually no idea if that is a "good" or "proper" way, but after digging, i found a fix for me:

Code:
diff core.py core_orig.py 
219d218
<         request_token = {key.decode('utf-8'): value.decode('utf-8') for (key, value) in request_token.items()}
230d228
<         access_token= {key.decode('utf-8'): value.decode('utf-8') for (key, value) in access_token.items()}
Woops, didn't see the extra post on the next page.

That looks like another difference in how the different Python versions handle strings. I'll look at whether that is the right way to handle it.
davidfor is offline   Reply With Quote
Old 02-12-2020, 07:59 AM   #1339
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 18,629
Karma: 30757200
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by shadowdance View Post
i have actually no idea if that is a "good" or "proper" way, but after digging, i found a fix for me:

Code:
diff core.py core_orig.py 
219d218
<         request_token = {key.decode('utf-8'): value.decode('utf-8') for (key, value) in request_token.items()}
230d228
<         access_token= {key.decode('utf-8'): value.decode('utf-8') for (key, value) in access_token.items()}
I have implemented a fix based on this. I have asked for the release version to be updated with this.
davidfor is offline   Reply With Quote
Old 02-12-2020, 06:43 PM   #1340
shadowdance
Junior Member
shadowdance began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2020
Device: kindle PW Gen10
Quote:
Originally Posted by davidfor View Post
I have implemented a fix based on this. I have asked for the release version to be updated with this.
wow - that was quick!
thank you!

it does work with the new version 1.14.2
shadowdance is offline   Reply With Quote
Advert
Old 03-01-2020, 09:34 AM   #1341
Orz
Junior Member
Orz began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2020
Location: Canada
Device: Kindle Oasis 3
Lightbulb Amazon ASIN support?

My primary source for books is Amazon. Kindle books from Amazon do not have ISBNs, and Goodreads can work much better with Amazon's ASIN when searching and matching, etc.

When performing a batch search, I find that the plugin never matches anything automatically. I had to manually search and select for thousands of books. Is it possible to support or default to using ASIN as the relational database primary key?

Also, it would be really helpful to support "fuzzy search" when matching Goodreads books to Calibre books, then just present a table of fuzzy searched results for confirmation if it can have secondary options in a dropdown menu, that would be even better.

Orz is offline   Reply With Quote
Old 03-01-2020, 07:03 PM   #1342
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 18,629
Karma: 30757200
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Orz View Post
My primary source for books is Amazon. Kindle books from Amazon do not have ISBNs, and Goodreads can work much better with Amazon's ASIN when searching and matching, etc.

When performing a batch search, I find that the plugin never matches anything automatically. I had to manually search and select for thousands of books. Is it possible to support or default to using ASIN as the relational database primary key?

Also, it would be really helpful to support "fuzzy search" when matching Goodreads books to Calibre books, then just present a table of fuzzy searched results for confirmation if it can have secondary options in a dropdown menu, that would be even better.
For most book matching, I recommend using the metadata download, and the Goodreads metadata source plugin. That can match on ASIN as well as ISBN and author/title.

Adding ASIN matching here would be possible. But, it would mean duplicating code from the metadata source plugin. And that means maintaining it in two places. I don't really see an advantage in doing it this way, so I don't really think it is worth the extra work.
davidfor is offline   Reply With Quote
Old 03-31-2020, 07:28 PM   #1343
Rellwood
Library Breeder
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 627
Karma: 1900141
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Ok, the updated plugin is a bit faster. About 25 seconds per hundred books synced. However, that is tested on a library that has a small .db file. about 15MB. I haven't determinined if it is a matter of it being a large database or if it has to do with having a lot of tags. The rules for sync don't make a difference.
Rellwood is offline   Reply With Quote
Old 03-31-2020, 07:50 PM   #1344
Rellwood
Library Breeder
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 627
Karma: 1900141
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Quote:
Originally Posted by davidfor View Post
Now, if the progress bar takes time to update, it is because the process behind it is taking time to update. Before I added the progress bar, calibre gave no indication that anything was happening. It was basically hung. The progress bar updates are just added at points in the loop of progress between pages or books being changed.
Nope. I contest that it takes longer.

I know that Calibre hangs while it updates the books via sync with the old plugin, however It took me 8:27 to sync my read shelf using the new plugin. There are 1162 books.

With the older plugin it took :25.94. I know this because I set the stopwatch to start when the sync box closed out and stop when the arrow icon turned into a finger when it was hovering over the Goodreads button on the menu bar.

Also, when I say update page, because the progress bar is so slow I am able to see it literally say “page 1”……….”page 2”…………”page 3” and so on. I may have saig "Updating Page 1" but I think I meant "Page 1" and each page represents a book.

I am not making this up, and I am not “perceiving” it to be slower. Why would I complain for months about this if I was just making perception errors that I could easily clear up with a stopwatch?

I have many times brought this up here. I understand that this is a problem that only affects me because no one would have been quiet if they were dealing with this. Also, I don't appreciate your being condescending. I know that this is a hard problem to explain, and I have tried to explain it, but since it only happens to me it sounds like I am being nit-picky, but I am not.

This is a great plugin, I love it, and I have contributed to it in the past. (I think), it is an integral part of my Calibre library. So having it work right is important. I don't doubt for a minute that you made the plugin fine, but for whatever reason it isn't playing nice with my library.

Last edited by Rellwood; 03-31-2020 at 07:57 PM. Reason: rephrasing
Rellwood is offline   Reply With Quote
Old 03-31-2020, 08:03 PM   #1345
Rellwood
Library Breeder
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 627
Karma: 1900141
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Could having two versions of Calibre be a reason? I have the 32bit and the 64bit. Could having both versions be a reason why the plugin is slow? Is there a way outside of removing Calibre from my coputer to test it?


No. I removed the older Calibre and it still runs a bit slower. About 100 books per 30 seconds.

Last edited by Rellwood; 03-31-2020 at 08:16 PM.
Rellwood is offline   Reply With Quote
Reply

Tags
calibre, goodreads

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Clipboard Search kiwidude Plugins 17 03-29-2020 03:07 AM
[GUI Plugin] Search the Internet kiwidude Plugins 319 12-18-2019 03:20 PM
[GUI Plugin] Open With kiwidude Plugins 336 09-11-2019 08:54 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 33 06-20-2018 03:00 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:02 PM.


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