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 07-10-2018, 09:32 AM   #16
Aerandir14
Junior Member
Aerandir14 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2017
Device: Kobo Glo
Hi,
I can't get the metadatas from Kobo Books.
Here is the log:
Quote:
calibre, version 3.27.1
ERROR: No matches found: <p>Failed to find any books that match your search. Try making the search <b>less specific</b>. For example, use only the author's last name and a single distinctive word from the title.<p>To see the full log, click "Show details".

Running identify query with parameters:
{u'title': u'\xdcbel Blatt, Vol. 1', u'authors': [u'Etorouji Shiono'], u'identifiers': {}, u'timeout': 30}
Using plugins: Kobo Books (1, 3, 1)
The log from individual plugins is below

****************************** Kobo Books (1, 3, 1) ******************************
Found 0 results
Downloading from Kobo Books took 7.10299992561
identify - title: "Ãœbel Blatt, Vol. 1" authors= "[u'Etorouji Shiono']"
create_query - title: "Ãœbel Blatt, Vol. 1"
create_query - after decode title: "Ubel Blatt, Vol. 1"
create_query - title_tokens: "[u'Ubel', u'Blatt', u'Vol', u'1']"
Querying: http://store.kobobooks.com/Search?Qu...o&fcmedia=Book
failed using three divs
Have close enough match - title='50 Chefs-D'Å“uvre Que Vous Devez Lire Avant De Mourir : Vol 1 (Golden Deer Classics)', id='50-chefs-d-uvre-que-vous-devez-lire-avant-de-mourir-vol-1-golden-deer-classics'
failed using three divs
Have close enough match - title='Captive-Moi (Vol. 1)', id='captive-moi-vol-1'
failed using three divs
Have close enough match - title='Mine Again - Vol. 1', id='mine-again-vol-1'
failed using three divs
Have close enough match - title='Angel after dark Vol.1', id='angel-after-dark-vol-1'
failed using three divs
Have close enough match - title='Plaisirs Partagés (Roman Érotique, Vol. 1)', id='plaisirs-partages-roman-erotique-vol-1'
KoboBooks url: u'http://store.kobobooks.com/ebook/50-chefs-d-uvre-que-vous-devez-lire-avant-de-mourir-vol-1-golden-deer-classics'
KoboBooks url: u'http://store.kobobooks.com/ebook/captive-moi-vol-1'
KoboBooks url: u'http://store.kobobooks.com/ebook/mine-again-vol-1'
KoboBooks url: u'http://store.kobobooks.com/ebook/angel-after-dark-vol-1'
KoboBooks url: u'http://store.kobobooks.com/ebook/plaisirs-partages-roman-erotique-vol-1'
parse_authors - author: "Kahlen Aymes"
Rejecting authors as not a close match: Kahlen Aymes
Could not find title/authors/KoboBooks id for u'http://store.kobobooks.com/ebook/angel-after-dark-vol-1'
Kobo Books: u'angel-after-dark-vol-1' Title: 'Angel after dark Vol.1' Authors: None
parse_authors - author: "Christina Ross"
Rejecting authors as not a close match: Christina Ross
Could not find title/authors/KoboBooks id for u'http://store.kobobooks.com/ebook/captive-moi-vol-1'
Kobo Books: u'captive-moi-vol-1' Title: 'Captive-Moi (Vol. 1)' Authors: None
parse_authors - author: "Louise Valmont"
Rejecting authors as not a close match: Louise Valmont
Could not find title/authors/KoboBooks id for u'http://store.kobobooks.com/ebook/mine-again-vol-1'
Kobo Books: u'mine-again-vol-1' Title: 'Mine Again - Vol. 1' Authors: None
parse_authors - author: "Mark Twain,Stendhal,Edgar Allan Poe,Victor Hugo,Gustave Flaubert,Alexandre Dumas,Arthur Conan Doyle,René Descartes,Lewis Carroll,Charles Baudelaire,Guillaume Apollinaire,Golden Deer Classics"
Rejecting authors as not a close match: Mark Twain,Stendhal,Edgar Allan Poe,Victor Hugo,Gustave Flaubert,Alexandre Dumas,Arthur Conan Doyle,René Descartes,Lewis Carroll,Charles Baudelaire,Guillaume Apollinaire,Golden Deer Classics
Could not find title/authors/KoboBooks id for u'http://store.kobobooks.com/ebook/50-chefs-d-uvre-que-vous-devez-lire-avant-de-mourir-vol-1-golden-deer-classics'
Kobo Books: u'50-chefs-d-uvre-que-vous-devez-lire-avant-de-mourir-vol-1-golden-deer-classics' Title: u"50 Chefs-D'\u0153uvre Que Vous Devez Lire Avant De Mourir : Vol 1 (Golden Deer Classics)" Authors: None
parse_authors - author: "Analia Noir"
Rejecting authors as not a close match: Analia Noir
Could not find title/authors/KoboBooks id for u'http://store.kobobooks.com/ebook/plaisirs-partages-roman-erotique-vol-1'
Kobo Books: u'plaisirs-partages-roman-erotique-vol-1' Title: u'Plaisirs Partag\xe9s (Roman \xc9rotique, Vol. 1)' Authors: None

************************************************** ******************************
The identify phase took 7.24 seconds
The longest time (7.103000) was taken by: Kobo Books
Merging results from different sources and finding earliest publication dates from the worldcat.org service
We have 0 merged results, merging took: 0.00 seconds
However, the book does exist on kobo store, with the exact same title : https://www.kobo.com/fr/en/ebook/ubel-blatt-vol-1-2

Does anybody have an idea about how to solve this issue? I've already tried with the 1.3.1 version

Thanks!

EDIT: It seams like it has something to do with the language. I think it searches in French written books only.

EDIT2 : Adding "&fclanguages=all" at the end of the query seems to have solved the issue. I don't know if it would be possible to get the language from the metadata, and search only for that language, or for all languages otherwise.

Last edited by Aerandir14; 07-10-2018 at 12:36 PM.
Aerandir14 is offline   Reply With Quote
Old 10-06-2018, 05:41 AM   #17
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: 15,643
Karma: 25874550
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Beta: Higher resolution covers and language support

Attached is a long delayed beta. The changes are:
  • Fix: Wasn't handling case where there were no tags/genres.
  • Fix: Missed fetching ISBN if there was an "Imprint".
  • New: Add support for fetching languages and rating and get high resolution cover. Based on code by MR member @qsxwdc.
  • Change: Try for better support of other languages in search. Based on suggestion by MR member @Aerandir14.

When I looked at the way the covers are handled by Kobo, I discovered you could set any size and it would generate a cover to fit that. I have changed this to use the size specified in the Tweak "maximum_cover_size". This will default to 1650x2200.

For the other languages, the suggestion by @Aerandir14 seems to work. But, I haven't tested many non-English books, and all my testing comes from an Australia IP address. The IP address does seem to have an affect on the result. If this change doesn't help, I might have to use a country or language specific search. That would need a configuration option and I'd prefer not to do that.

Please test and report any problems, or success.
Attached Files
File Type: zip KoboBooks-beta.zip (7.7 KB, 34 views)
davidfor is offline   Reply With Quote
Advert
Old 11-09-2018, 09:00 PM   #18
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: 15,643
Karma: 25874550
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Update to version 1.4.0

I have just released version 1.4.0 of the plugin. The changes in this release are:
  • Fix: Wasn't handling case where there were no tags/genres.
  • Fix: Missed fetching ISBN if there was an "Imprint".
  • New: Add support for fetching languages and rating and get high resolution cover. Based on code by MR member @qsxwdc
  • Change: Try for better support of other languages in search. Based on suggestion by MR member @Aerandir14
  • New: Add id_from_url to return the identifier.

Most of the changes were in the last beta.

The last item is for a change I made to the metadata editor that has been released in calibre version 3.34. When you press the button next to the identifiers field, if there is a URL in the clipboard, then it will attempt to get an identifier from the URL. That function needs support from the metadata source plugins.

As always, calibre will show update in the next hour or so. And if there are any problems, please report them here.
davidfor is offline   Reply With Quote
Old 11-14-2018, 05:24 PM   #19
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 11226921
Join Date: Sep 2009
Location: UK
Device: Sony:PRS-350, Kobo:Aura6"/H2O/GloHD/KA1/ClaraHD/Forma
@davidfor,

I just updated this plugin today. I am now getting this error message when I use Edit metadata > Download cover
Code:
calibre, version 3.34.0
ERROR: Download failed: Failed to download any covers, click "Show details" for details.

Traceback (most recent call last):
  File "site-packages\calibre\utils\ipc\simple_worker.py", line 289, in main
  File "site-packages\calibre\ebooks\metadata\sources\worker.py", line 132, in single_covers
WindowsError: [Error 183] Cannot create a file when that file already exists: u'D:\\sysfiles\\calibre\\caltemp\\calibre_95odki\\rjfrcf_single_metadata_download\\Kobo Books,,1368,,2100,,jpeg.cover.done'
Despite the error message, many covers are fetched - including one labelled Kobo Books - and double-clicking one of them pulls it into calibre in the normal way.
jackie_w is offline   Reply With Quote
Old 11-15-2018, 08:20 AM   #20
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: 15,643
Karma: 25874550
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Quote:
Originally Posted by jackie_w View Post
@davidfor,

I just updated this plugin today. I am now getting this error message when I use Edit metadata > Download cover
Code:
calibre, version 3.34.0
ERROR: Download failed: Failed to download any covers, click "Show details" for details.

Traceback (most recent call last):
  File "site-packages\calibre\utils\ipc\simple_worker.py", line 289, in main
  File "site-packages\calibre\ebooks\metadata\sources\worker.py", line 132, in single_covers
WindowsError: [Error 183] Cannot create a file when that file already exists: u'D:\\sysfiles\\calibre\\caltemp\\calibre_95odki\\rjfrcf_single_metadata_download\\Kobo Books,,1368,,2100,,jpeg.cover.done'
Despite the error message, many covers are fetched - including one labelled Kobo Books - and double-clicking one of them pulls it into calibre in the normal way.
I don't know what is happening here. That error appears to be in calibre code controlling the download of covers. The file look to be recording what has been done. It should disappear after the downloads are finished. The only way I can see for that error to happen is if the plugin returned two cover images. And I can't think of how that could happen.

Is there anything in the log for the cover download?
davidfor is offline   Reply With Quote
Advert
Old 11-15-2018, 11:26 AM   #21
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,635
Karma: 11226921
Join Date: Sep 2009
Location: UK
Device: Sony:PRS-350, Kobo:Aura6"/H2O/GloHD/KA1/ClaraHD/Forma
Quote:
Originally Posted by davidfor View Post
I don't know what is happening here. That error appears to be in calibre code controlling the download of covers. The file look to be recording what has been done. It should disappear after the downloads are finished. The only way I can see for that error to happen is if the plugin returned two cover images. And I can't think of how that could happen.

Is there anything in the log for the cover download?
There was no extra info in the debug log. In fact the on-screen error message didn't even appear in the debug log

I decided to completely uninstall 'Kobo Books then start over with a new installation.

The good news is that I'm no longer getting an error after the fresh install. I suppose there must have been a problem during my update from 1.3.2 (??? I think) to 1.4.0. The pre-update version was one of your betas.
jackie_w is offline   Reply With Quote
Old 11-15-2018, 07:10 PM   #22
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: 15,643
Karma: 25874550
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Quote:
Originally Posted by jackie_w View Post
There was no extra info in the debug log. In fact the on-screen error message didn't even appear in the debug log
I should have thought about what I wanted to look for. I wasn't really expecting any extra errors, but, if something was causing multiple covers to be retrieved, then that should have been shown.
Quote:
I decided to completely uninstall 'Kobo Books then start over with a new installation.

The good news is that I'm no longer getting an error after the fresh install. I suppose there must have been a problem during my update from 1.3.2 (??? I think) to 1.4.0. The pre-update version was one of your betas.
This plus the restart probably cleaned things up. The issue was with a temporary file created in a temporary directory. If something prevented the cleanup, then there might have been a clash.
davidfor 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
[Metadata Source Plugin] Goodreads kiwidude Plugins 454 12-08-2018 12:47 PM
[Metadata Source Plugin] Comicvine chewt0y Plugins 60 06-29-2018 06:26 PM
[Metadata Source Plugin] BOL.com (DE) Pr.BarnArt Plugins 39 01-26-2017 07:25 AM
[Metadata Source Plugin] INMONDADORI Pr.BarnArt Plugins 5 07-29-2016 06:56 AM


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


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