mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 15:36:11 +01:00
...
This commit is contained in:
parent
3e09d4f456
commit
4c168fd409
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ def parse_article(edg):
|
||||||
def article_parse(data):
|
def article_parse(data):
|
||||||
yield "<html><body>"
|
yield "<html><body>"
|
||||||
for frm in data['frms']:
|
for frm in data['frms']:
|
||||||
|
if not frm:
|
||||||
|
continue
|
||||||
for mod in frm.get('mods', ()):
|
for mod in frm.get('mods', ()):
|
||||||
for edg in mod.get('edgs', ()):
|
for edg in mod.get('edgs', ()):
|
||||||
if edg.get('cmsType') == 'ArticleBodyTile':
|
if edg.get('cmsType') == 'ArticleBodyTile':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue