mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Output languages as a JSON list
This commit is contained in:
parent
84683803f1
commit
98e8991655
@ -103,6 +103,8 @@ def do_list(db, fields, afields, sort_by, ascending, search_text, line_width, se
|
||||
record[key] = isoformat(val, as_utc=True)
|
||||
elif val is None:
|
||||
del record[key]
|
||||
elif key == 'languages' and val:
|
||||
record[key] = val.split(',')
|
||||
return json.dumps(data, indent=2, sort_keys=True)
|
||||
|
||||
fields = list(map(field_name, fields))
|
||||
|
Loading…
x
Reference in New Issue
Block a user