Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2022, 06:55 AM   #121
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: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
I can modify the code as long as I know where to put the new function. Where does it go?
Honestly, @13xforever has given enough instructions to do it. If you do not understand what was posted, then you probably shouldn't try.

But, attached is a beta that is working here. It hasn't been done in exactly the way that @13xforever did it, as I'm still thinking and experimenting. And gzip is specified elsewhere. I'm loathe to release it as using such a specific user agent is probably going to fail soon.
Attached Files
File Type: zip KoboBooks-beta.zip (9.3 KB, 311 views)
davidfor is offline   Reply With Quote
Old 03-05-2022, 11:06 AM   #122
Shpounz
Member
Shpounz began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra H2O
Thank you, this beta works well.
A small detail : tags were previously downloaded in my language / language of the book (French), they are now in English
Shpounz is offline   Reply With Quote
Old 03-05-2022, 02:01 PM   #123
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,553
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by davidfor View Post
Honestly, @13xforever has given enough instructions to do it. If you do not understand what was posted, then you probably shouldn't try.

But, attached is a beta that is working here. It hasn't been done in exactly the way that @13xforever did it, as I'm still thinking and experimenting. And gzip is specified elsewhere. I'm loathe to release it as using such a specific user agent is probably going to fail soon.
Thanks. It's working.

As for the other code, I just needed to know where to place it and I would have been OK.
JSWolf is offline   Reply With Quote
Old 03-05-2022, 05:45 PM   #124
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,551
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Thanks. It's working.

As for the other code, I just needed to know where to place it and I would have been OK.
Enough information to do that was in the original post.
DNSB is online now   Reply With Quote
Old 03-06-2022, 10:14 AM   #125
RobertJSawyer
Guru
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 730
Karma: 3871570
Join Date: Jun 2006
Location: Toronto
Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite
@Davidfor, this is terrific! Thank you! I installed your beta version from message #121 and ran a test using Calibre 4.23. With this beta version and Kobo selected as the only metadata source, Calibre successfully downloaded metadata and covers for almost all of the last 20 books I bought from Kobo.

Thank you again!
RobertJSawyer is offline   Reply With Quote
Old 03-10-2022, 03:29 PM   #126
gguigui
Member
gguigui began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra 2 and Clara HD
It works again! Thank you very much @Davidfor
gguigui is offline   Reply With Quote
Old 03-10-2022, 07:04 PM   #127
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,417
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
Adding my voice of thanks for the fix - it's great to have my primary source of books back 'online' in Calibre, THANK YOU!
Uncle Robin is offline   Reply With Quote
Old 04-04-2022, 02:40 AM   #128
trowgundam
Junior Member
trowgundam began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2022
Device: Kobo Libra H20
Thanks for the beta update above. It's working well for me. One thing I have noticed though is it seems Kobo is presenting Series differently and it seems to have broken how the plugin retrieves volume numbers. It'll get the series name, but everything is showing as Volume 1, although I can look on Kobo and see that it has the proper volume number listed. This seems like a fairly recent change as when I first used the beta for a few books it found the volume number just fine, but when I went to add some today it wasn't working. Its been a couple weeks between, so I'm not sure when it started occurring exactly.
trowgundam is offline   Reply With Quote
Old 04-04-2022, 09:25 AM   #129
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: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by trowgundam View Post
Thanks for the beta update above. It's working well for me. One thing I have noticed though is it seems Kobo is presenting Series differently and it seems to have broken how the plugin retrieves volume numbers. It'll get the series name, but everything is showing as Volume 1, although I can look on Kobo and see that it has the proper volume number listed. This seems like a fairly recent change as when I first used the beta for a few books it found the volume number just fine, but when I went to add some today it wasn't working. Its been a couple weeks between, so I'm not sure when it started occurring exactly.
Can you give me some examples? I haven't noticed any issues, but, I also haven't added a new book with a series for a couple of weeks.
davidfor is offline   Reply With Quote
Old 04-04-2022, 03:11 PM   #130
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,417
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
I can confirm the "everything is series number (1)" bug. It has become the norm for books I've bought in series, the most recent was a book I bought 2 days ago. The 1st screenshot shows the book in the Kobo store, the second the listing for that version's ISBN in the metadata import plugin and the third shows the listing for other editions.

It has become so routine that I tend to mix and match the metadata download - I prefer the books to have the covers match the copy I bought from Kobo, but I also prefer not having to continually change the series number.
Attached Thumbnails
Click image for larger version

Name:	series-store.png
Views:	499
Size:	100.7 KB
ID:	193094   Click image for larger version

Name:	series-kobo plugin.png
Views:	120
Size:	31.9 KB
ID:	193095   Click image for larger version

Name:	series-nonkobo plugin.png
Views:	107
Size:	41.3 KB
ID:	193096  
Uncle Robin is offline   Reply With Quote
Old 04-04-2022, 03:18 PM   #131
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,551
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by davidfor View Post
Can you give me some examples? I haven't noticed any issues, but, I also haven't added a new book with a series for a couple of weeks.
On the series number bug, I've found the same where every book in a series does not parse the series index. From what I saw, it appears the books are showing the series name and then a two digit series index while the plugin seems to be look for a #number as the series index. I copied the log for one download in the spoiler tags.

Spoiler:
Code:
Running identify query with parameters: 
{'title': 'Demi-Diety', 'authors': ['Michael Anderle'], 'identifiers': {'isbn': '9781649711823', 'kobo': 'demi-diety'}, 'timeout': 30} 
Using plugins: Goodreads (1, 5, 3), Kobo Books (1, 8, 4), Smashwords Metadata (1, 0, 2), Amazon.com (1, 2, 24) 
The log from individual plugins is below 

****************************** Goodreads (1, 5, 3) ****************************** 
Found 0 results 
Downloading from Goodreads took 1.9682505130767822 
identify - start. title=Demi-Diety, authors=['Michael Anderle'], identifiers={'isbn': '9781649711823', 'kobo': 'demi-diety'}
get_goodreads_id_from_identifiers - isbn=9781649711823
get_goodreads_id_using_api - identifiers=9781649711823
Querying using autocomplete API: https://www.goodreads.com/book/auto_complete?format=json&q=9781649711823
JSON Result: b'[]'
Result using autocomplete API: None
Querying: https://www.goodreads.com/search?search_type=books&search[query]=Demi-Diety+Michael+Anderle
no isbn
response: <Element html at 0x281a2e66ef0> 

******************************************************************************** 

****************************** Kobo Books (1, 8, 4) ****************************** 
Found 1 results 
Downloading from Kobo Books took 1.7568421363830566 


--- 
Title               : Demi-Diety
Author(s)           : Michael Anderle
Publisher           : LMBPN Publishing
Tags                : Science Fiction & Fantasy, Science Fiction, Adventure Sci Fi
Series              : Chronicles Of KieraFreya #1
Rating              : 
Published           : 2020-09-24T11:00:00+00:00
Identifiers         : kobo:demi-diety, isbn:9781649711823
Comments            : b'<div class="synopsis-description" translate="no"><p><strong>Everyone wants you to fail…CHECK!</strong></p>\n<p><em>“Screw Them!”</em></p>\n<p><strong>What’s a billionaire heiress supposed to do when the world seems hell-bent on stopping her from completing her mission?</strong></p>\n<p>Chloe is on the cusp of finishing her quest, but forces inside and outside the game are colluding to stop her. What is it going to take?</p>\n<p><strong>Grab your copy today to find out if Chloe has what it takes to help KieraFreya.</strong></p>\n<p><strong>And Herself.</strong></p>\n</div> \r\n    ' 
identify - title: "Demi-Diety" authors= "['Michael Anderle']"
KoboBooks url: 'https://www.kobo.com/ebook/demi-diety'
parse_details - kobobooks_id: "demi-diety" 
parse_details - title: "Demi-Diety" 
parse_authors - author: "Michael Anderle"
parse_authors - authors: "['Michael Anderle']"
parse_details - authors: "['Michael Anderle']" 
Script page_metadata= {'@context': 'http://schema.org', '@type': 'Product', 'name': 'Demi-Diety', 'description': 'Read "Demi-Diety Chronicles Of KieraFreya Book 05" by Michael Anderle available from Rakuten Kobo. Everyone wants you to fail…CHECK!\n“Screw Them!”\nWhat’s a billionaire heiress supposed to do when the world seems hell-be...', 'image': 'https://kbimages1-a.akamaihd.net/79dff0d7-6f0c-48d4-95f6-66a6a1b56c24/180/1000/False/demi-diety.jpg', 'releasedate': '2020-09-24T04:00:00', 'sku': '9781649711823', 'gtin13': '9781649711823', 'offers': {'@type': 'Offer', 'price': 5.99, 'priceCurrency': 'CAD', 'availability': 'http://schema.org/InStock', 'url': 'https://www.kobo.com/ca/en/ebook/demi-diety'}, 'brand': 'LMBPN Publishing'}
pubdate from JSON: 2020-09-24 04:00:00
parse_series - series_text: "Chronicles Of KieraFreya" 
parse_series - no # in series name
parse_series - Cannot split series info - series_text=Chronicles Of KieraFreya
parse_series - series_name=Chronicles Of KieraFreya, series_index=None
parse_rating - rating: "0" 

******************************************************************************** 

****************************** Smashwords Metadata (1, 0, 2) ****************************** 
Found 0 results 
Downloading from Smashwords Metadata took 2.344212532043457 
Querying: https://www.smashwords.com/books/search?query=9781649711823
No matches found with identifiers, retrying using title and authors. Query: 'https://www.smashwords.com/books/search?query=9781649711823'
Querying: https://www.smashwords.com/books/search?query=Demi-Diety
No Full Search section. Has the page changed?
Building match list from found_ids: []
Matches: []
No matches found with query: 'https://www.smashwords.com/books/search?query=Demi-Diety' 

******************************************************************************** 

****************************** Amazon.com (1, 2, 24) ****************************** 
Found 0 results 
Downloading from Amazon.com took 2.768747091293335 
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Server: amazon
No matches found with identifiers, retrying using only title and authors. Query: 'https://www.amazon.ca/s/?search-alias=aps&unfiltered=1&sort=relevancerank&field-isbn=9781649711823'
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Server: amazon
No matches found with query: 'https://www.amazon.ca/s/?search-alias=stripbooks&unfiltered=1&sort=relevancerank&field-title=Demi-Diety&field-author=Michael+Anderle' 

******************************************************************************** 
The identify phase took 2.87 seconds 
The longest time (2.768747) was taken by: Amazon.com 
Merging results from different sources 
We have 1 merged results, merging took: 0.00 seconds
DNSB is online now   Reply With Quote
Old 04-04-2022, 04:57 PM   #132
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,820
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I also had the series number bug happen a little while ago, but I forgot what book it was in order to replicate.
ownedbycats is offline   Reply With Quote
Old 04-04-2022, 05:01 PM   #133
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,417
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
Quote:
Originally Posted by ownedbycats View Post
I also had the series number bug happen a little while ago, but I forgot what book it was in order to replicate.
I just checked the last 10 Kobo books that were part of a series I imported to Calibre, and two of them listed the series position correctly - the two that were ACTUALLY first in their series.
Uncle Robin is offline   Reply With Quote
Old 04-04-2022, 05:11 PM   #134
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,820
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Unchecking all other metadata sources I am able to replicate it:

Click image for larger version

Name:	2022-04-04 18_10_08-Edit metadata - Schooling Horse -  [58 of 117].png
Views:	210
Size:	145.5 KB
ID:	193097

Click image for larger version

Name:	2022-04-04 18_11_29-Edit metadata - Six Cats a Slayin' -  [11 of 41].png
Views:	120
Size:	222.9 KB
ID:	193098

("Traditional British"? It takes place in Mississippi...)
ownedbycats is offline   Reply With Quote
Old 04-05-2022, 08:25 AM   #135
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: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Update to version 1.9.0

I have just updated the plugin to version 1.9.0. This is to fix the problem with series info and handle the other site changes.

The changes in this release are:
  • Fix: Site change for Series info
  • Fix: Set some request headers to one that the site seems to find acceptable.

Calibre will announce the release in the next hour or so. As usual, if there are any problems or suggestions, please post them here.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] Goodreads kiwidude Plugins 730 03-23-2024 10:24 PM
[Metadata Source Plugin] BOL.com (DE) Pr.BarnArt Plugins 52 06-01-2023 04:50 PM
[Metadata Source Plugin] Comicvine chewt0y Plugins 88 07-11-2022 12:00 PM
[Metadata Source Plugin] INMONDADORI Pr.BarnArt Plugins 7 12-03-2021 12:56 PM


All times are GMT -4. The time now is 12:28 AM.


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