mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0bd99e0635
commit
15c1e62154
@ -8,11 +8,8 @@ def get_story(story):
|
|||||||
yield '\n' + story['text']
|
yield '\n' + story['text']
|
||||||
elif str_type == 'image':
|
elif str_type == 'image':
|
||||||
yield ''.join(img(story))
|
yield ''.join(img(story))
|
||||||
elif str_type == 'composite':
|
|
||||||
for x in story.get('story-elements', {}):
|
|
||||||
yield from get_story(x)
|
|
||||||
elif 'story-elements' in story:
|
elif 'story-elements' in story:
|
||||||
for x in story.get('story-elements', {}):
|
for x in story['story-elements']:
|
||||||
yield from get_story(x)
|
yield from get_story(x)
|
||||||
|
|
||||||
def img(img):
|
def img(img):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user