Hi, me again.
>>> prs = Presentation("narrated_powerpoint_presentation.pptx")
>>> shape = prs.slides[1].shapes[2]
>>> shape.name
'Audio 5'
>>> shape.click_action.action
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\python332\lib\site-packages\pptx\action.py", line 53, in action
return {
KeyError: 'media'
And if you examine the shape it acts like it is an image file rather than audio.
Preferred solutions/workarounds:
- To be able to recognise that it is audio.
-
- To be able to retrieve the name of the media file which I can then extract from the pptx as a zip.
Uploading narrated_powerpoint_presentation.pptx…
Hi, me again.
And if you examine the shape it acts like it is an image file rather than audio.
Preferred solutions/workarounds:
Uploading narrated_powerpoint_presentation.pptx…