mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-01 18:56:15 +01:00
Exclude improperly named entries from ISO-639-3
Fixes #1851909 [Some strange languages is shown in the list](https://bugs.launchpad.net/calibre/+bug/1851909)
This commit is contained in:
parent
5fbfe3fb36
commit
4feb684c89
1 changed files with 2 additions and 0 deletions
|
|
@ -813,6 +813,8 @@ def run(self, opts):
|
|||
name = x.get('name')
|
||||
if name:
|
||||
name = unicode_type(name)
|
||||
if not name or name[0] in '!~=/\'"':
|
||||
continue
|
||||
|
||||
if two is not None:
|
||||
by_2[two] = name
|
||||
|
|
|
|||
Loading…
Reference in a new issue