View Single Post
Old 10-15-2022, 06:03 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by un_pogaz View Post
Oh, un plugin babelio, merci, ça sera utile.

You can also retrieve the current translated value of 'Unknown' with
Code:
from calibre.ebooks.metadata.book.base import NULL_VALUES
NULL_VALUES is a dict, but small trap 'authors' value is a list
Code:
nknwn = ['Inconnu(e)', 'Unknown', NULL_VALUES['authors'][0]]
Another option if you have a metadata object (mi): use
Code:
mi.is_null('authors')
chaley is offline   Reply With Quote