View Single Post
Old 04-21-2023, 07:32 AM   #1
eryMpexI
Junior Member
eryMpexI began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2023
Device: PDF reader on Windows
How do I know which Metadata Source Plugin was called from fetch-ebook-metadata?

Hello everybody,
I'm running fetch-ebook-metadata from Shell:

Code:
fetch-ebook-metadata --isbn="${ISBN}" --opf 2>/dev/null
Occasionally, the script fails with this error:

Quote:
-:26.1: Extra content at the end of the document
Failed to get cached URL from google for URL: https://www.amazon.com/Norton-Read
I don't know which metadata plugin throws this error.

The forum says:

Quote:
You can obtain the plugin error details by starting Calibre in debug mode
But I'm not starting the whole Calibre app, just fetch-ebook-metadata.

What's the best approach to troubleshoot this?

Ideally, I would configure the Shell script to restrict the run to one plugin each time using --allowed-plugin, see what result I get, and only use a different source if the request fails, but it's not something I can code right now.
So, I wonder how to know this
eryMpexI is offline   Reply With Quote