mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fis SMIL files not being removed when removing TTS narration
This commit is contained in:
parent
5d7c6937de
commit
2ea2460753
@ -434,6 +434,7 @@ def remove_embedded_tts(container):
|
|||||||
smil_href = smil_item.get('href')
|
smil_href = smil_item.get('href')
|
||||||
if smil_href:
|
if smil_href:
|
||||||
smil_name = container.href_to_name(smil_item.get('href'), container.opf_name)
|
smil_name = container.href_to_name(smil_item.get('href'), container.opf_name)
|
||||||
|
media_files.add(smil_name)
|
||||||
smil_root = container.parsed(smil_name)
|
smil_root = container.parsed(smil_name)
|
||||||
for ahref in smil_root.xpath('//*[local-name() = "audio"]/@src'):
|
for ahref in smil_root.xpath('//*[local-name() = "audio"]/@src'):
|
||||||
aname = container.href_to_name(ahref, smil_name)
|
aname = container.href_to_name(ahref, smil_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user