mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix regression in 0.8.35 that caused viewer to raise an error on books that did not define a language
This commit is contained in:
parent
4a2dca4584
commit
5c6016239a
@ -73,6 +73,9 @@ class JavaScriptLoader(object):
|
|||||||
src = self.get(x)
|
src = self.get(x)
|
||||||
evaljs(src)
|
evaljs(src)
|
||||||
|
|
||||||
|
if not lang:
|
||||||
|
lang = 'en'
|
||||||
|
|
||||||
def lang_name(l):
|
def lang_name(l):
|
||||||
l = l.lower()
|
l = l.lower()
|
||||||
l = lang_as_iso639_1(l)
|
l = lang_as_iso639_1(l)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user