[Bug] Amazon metadata downloader give empty title if title start with "["

Bug #1971015 reported by Jiang Haotian
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Version 5.41.0

For some amazon book, the title parser in the downloader provides empty results and results in an empty title.
The bug is from https://github.com/kovidgoyal/calibre/blob/bc91a6bed6c84897f48b6dd1b1f28e1ddac93a9a/src/calibre/ebooks/metadata/sources/amazon.py#L524

There is a case where "[" appears at the begining of the title, in such case the title will be parsed into empty string. This may not be a rare case, there are a bunch of books on Amazon.co.jp begins with "["

Some example links:

Even some books have "[" in between the names, for example https://www.amazon.co.jp/dp/B07HY9YPBN .

summary: - Amazon metadata downloader title parser bug
+ [Bug] Amazon metadata downloader give empty title if title start with
+ "["
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.