From 2ea2460753bf2edf0ee7e76fff8f1a06515d7d7c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Oct 2024 14:53:14 +0530 Subject: [PATCH] Fis SMIL files not being removed when removing TTS narration --- src/calibre/ebooks/oeb/polish/tts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/oeb/polish/tts.py b/src/calibre/ebooks/oeb/polish/tts.py index 3e3c96913d..19693e2710 100644 --- a/src/calibre/ebooks/oeb/polish/tts.py +++ b/src/calibre/ebooks/oeb/polish/tts.py @@ -434,6 +434,7 @@ def remove_embedded_tts(container): smil_href = smil_item.get('href') if smil_href: smil_name = container.href_to_name(smil_item.get('href'), container.opf_name) + media_files.add(smil_name) smil_root = container.parsed(smil_name) for ahref in smil_root.xpath('//*[local-name() = "audio"]/@src'): aname = container.href_to_name(ahref, smil_name)