mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -813,6 +813,8 @@ class ISO639(Command): # {{{
|
||||
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…
x
Reference in New Issue
Block a user