mirror of
https://github.com/santinic/audiblez.git
synced 2025-08-05 16:48:55 +00:00
fix
This commit is contained in:
parent
4fdc550771
commit
b218fc87e7
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def find_chapters(book, verbose=False):
|
|||
|
||||
|
||||
def pick_chapters(book):
|
||||
all_chapters_names = [c.get_name() for c in book.get_items()]
|
||||
all_chapters_names = [c.get_name() for c in book.get_items() if c.get_type() == ebooklib.ITEM_DOCUMENT]
|
||||
title = 'Select which chapters to read in the audiobook'
|
||||
selected_chapters_names = pick(all_chapters_names, title, multiselect=True, min_selection_count=1)
|
||||
selected_chapters_names = [c[0] for c in selected_chapters_names]
|
||||
|
|
Loading…
Add table
Reference in a new issue