Fix #2003729 [RecursionError when embedding metadata into PDF](https://bugs.launchpad.net/calibre/+bug/2003729)

This commit is contained in:
Kovid Goyal 2023-01-23 21:47:21 +05:30
parent cf570250b2
commit 7aec1cda0d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2651,7 +2651,7 @@ class Cache:
fmts = field.table.book_col_map.get(book_id, ()) fmts = field.table.book_col_map.get(book_id, ())
if not fmts: if not fmts:
continue continue
mi = self.get_metadata(book_id, get_cover=True, cover_as_data=True) mi = self._get_metadata(book_id, get_cover=True, cover_as_data=True)
try: try:
path = self._field_for('path', book_id).replace('/', os.sep) path = self._field_for('path', book_id).replace('/', os.sep)
except: except: