Comment 0 for bug 1971015

Revision history for this message
Jiang Haotian (harukananami) wrote : Amazon metadata downloader title parser bug

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:
https://www.amazon.co.jp/dp/B01MS4PP3C
https://www.amazon.co.jp/dp/B07TTCY25K
https://www.amazon.co.jp/dp/B01MSEM5UG