mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
...
This commit is contained in:
parent
fa09d8a460
commit
5cac5890d9
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ def data(self, role):
|
|||
if icon in self.favicons:
|
||||
try:
|
||||
with zipfile.ZipFile(self.zf, 'r') as zf:
|
||||
p.loadFromData(zf.read(icon))
|
||||
p.loadFromData(zf.read(self.favicons[icon]))
|
||||
except:
|
||||
pass
|
||||
if not p.isNull():
|
||||
|
|
@ -140,7 +140,7 @@ def __init__(self, *args):
|
|||
self.scheduler_config = SchedulerConfig()
|
||||
try:
|
||||
with zipfile.ZipFile(P('builtin_recipes.zip'), 'r') as zf:
|
||||
self.favicons = frozenset([x for x in zf.namelist() if
|
||||
self.favicons = dict([(x, zf.getinfo(x)) for x in zf.namelist() if
|
||||
x.endswith('.png')])
|
||||
except:
|
||||
self.favicons = frozenset()
|
||||
|
|
|
|||
Loading…
Reference in a new issue