View Single Post
Old 05-17-2023, 01:17 PM   #1
ErylFlynn
Junior Member
ErylFlynn began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: Pixel 6
Download Metadata Search Fail

So trying to understand better why it fails in some cases, despite being able to find it on Amazon, searching Google and more. Below is an example of the output from the failure. I know it works for other titles but I have many that do not work. Want to learn how I can make changes to get it to work more often.

Running identify query with parameters:
{'title': 'Dark Peace', 'authors': ['J.N. Chaney', 'M.F. Lerma'], 'identifiers': {'mobi-asin': 'B0BMT47F7P'}, 'timeout': 30}
Using plugins: Google (1, 1, 1), Amazon.com (1, 3, 3)
The log from individual plugins is below

****************************** Google (1, 1, 1) ******************************
Found 0 results
Downloading from Google took 5.757674217224121
Making query: https://books.google.com/books/feeds...ewability=none
No results found, doing a web search instead
Making query: https://www.google.com/search?q=Dark...Chaney&tbm=bks
Excluding Backyard Starship by J. N. Chaney & Terry Maggert as it does not match the query
Excluding The Messenger (The Messenger Series Book 1) by J. N. Chaney & Terry Maggert as it does not match the query
Excluding Lost in the Dark: A World History of Horror Film by Brad Weismann as it does not match the query
Excluding Quantum Assault: A Military Scifi Epic by J. N. Chaney & Christopher Hopper as it does not match the query
Excluding poetry of life by Robert Chaney as it does not match the query
Excluding Give It To Her: The Gift of Healing and Restoration by Sandra Chaney as it does not match the query
Excluding Lon Chaney's The Miracle Man: The Novel that Inspired the Famous Lost Film by Frank L. Packard as it does not match the query
Excluding City of Pearl by Karen Traviss as it does not match the query
Excluding Beck and Caul Investigations #4 by Reginald Chaney & Paul Kowalski as it does not match the query
Excluding The Courtesan: A Novel by Susan Carroll as it does not match the query

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

****************************** Amazon.com (1, 3, 3) ******************************
Found 0 results
Downloading from Amazon.com took 4.128862380981445
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36
Server: auto
Making google query: https://www.google.com/search?q=Dark...www.amazon.com
Ignoring 'Images for Dark Peace Chaney site:www.amazon.com' as it has no cached page
Ignoring 'Images for Dark Peace Chaney site:www.amazon.com' as it has no cached page
Ignoring 'Images for Dark Peace Chaney site:www.amazon.com' as it has no cached page
Ignoring 'Images for Dark Peace Chaney site:www.amazon.com' as it has no cached page
Ignoring 'Images for Dark Peace Chaney site:www.amazon.com' as it has no cached page
Ignoring div with no main result link
Downloading details from: https://webcache.googleusercontent.c...&ct=clnk&gl=us
Could not find title/authors/asin for 'https://webcache.googleusercontent.com/search?q=cache:RMtNJ0j_BlgJ:https://www.amazon.com/Dark-Peace-Sl...&ct=clnk&gl=us'
ASIN: 'B0BJJT1D1G' Title: 'Dark Peace' Authors: []
Downloading details from: https://webcache.googleusercontent.c...&ct=clnk&gl=us
Could not find title/authors/asin for 'https://webcache.googleusercontent.com/search?q=cache:rw3_iTzI1YkJ:https://www.amazon.com/Dark-Peace-Sl...&ct=clnk&gl=us'
ASIN: 'B0BMT47F7P' Title: 'Dark Peace' Authors: []
Downloading details from: https://webcache.googleusercontent.c...&ct=clnk&gl=us
Error parsing title for url: 'https://webcache.googleusercontent.com/search?q=cache:GKJ9e-BHn0MJ:https://www.amazon.com/Dark-Peace-Sl...&ct=clnk&gl=us'
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/ebooks/metadata/sources/amazon.py", line 439, in parse_details
title = self.parse_title(root)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/ebooks/metadata/sources/amazon.py", line 587, in parse_title
raise ValueError('No title block found')
ValueError: No title block found

Could not find title/authors/asin for 'https://webcache.googleusercontent.com/search?q=cache:GKJ9e-BHn0MJ:https://www.amazon.com/Dark-Peace-Sl...&ct=clnk&gl=us'
ASIN: 'B0BLCZGQ8L' Title: None Authors: []

************************************************** ******************************
The identify phase took 5.80 seconds
The longest time (5.757674) was taken by: Google
Merging results from different sources
We have 0 merged results, merging took: 0.00 seconds
ErylFlynn is offline   Reply With Quote