mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'comicbookinfo_language' of https://github.com/PhiBabin/calibre
This commit is contained in:
commit
7d4695f37e
@ -10,6 +10,7 @@ import os
|
||||
from contextlib import closing
|
||||
|
||||
from calibre.customize import FileTypePlugin
|
||||
from calibre.utils.localization import canonicalize_lang
|
||||
from polyglot.builtins import filter, unicode_type
|
||||
|
||||
|
||||
@ -114,6 +115,10 @@ def get_comic_book_info(d, mi, series_index='volume'):
|
||||
mi.series_index = float(si)
|
||||
except Exception:
|
||||
mi.series_index = 1
|
||||
if d.get('language', None):
|
||||
lang = canonicalize_lang(d.get('lang'))
|
||||
if lang:
|
||||
mi.languages = [lang]
|
||||
if d.get('rating', -1) > -1:
|
||||
mi.rating = d['rating']
|
||||
for x in ('title', 'publisher'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user