mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5d2f5bd56e
commit
440d87d627
@ -109,6 +109,8 @@ else:
|
||||
name, lang = parse_localized_key(k)
|
||||
if name not in ans:
|
||||
ans[name] = {}
|
||||
if isinstance(ans[name], type('')):
|
||||
ans[name] = {None:ans[name]}
|
||||
ans[name][lang] = v
|
||||
else:
|
||||
ans[k] = v
|
||||
@ -223,6 +225,8 @@ else:
|
||||
try:
|
||||
data = parse_desktop_file(path)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
continue
|
||||
if data is not None and mime_types.intersection(data['MimeType']):
|
||||
icon = data.get('Icon', {}).get(None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user