This commit is contained in:
Claudio Santini 2025-01-16 15:24:32 +01:00
parent 4fdc550771
commit b218fc87e7

View file

@ -124,7 +124,7 @@ def find_chapters(book, verbose=False):
def pick_chapters(book): 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' 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 = pick(all_chapters_names, title, multiselect=True, min_selection_count=1)
selected_chapters_names = [c[0] for c in selected_chapters_names] selected_chapters_names = [c[0] for c in selected_chapters_names]