scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.37k stars 513 forks source link

add movie function adds media to selection pane with the file extension #767

Open slycordinator opened 2 years ago

slycordinator commented 2 years ago

Minor inconvenience at best, but the shapes.add_movie() function differs from powerpoint for recent versions.

In PowerPoint, when you insert "filename.mkv" (or other types), the selection pane contains something named "filename"

But with python-pptx, the inserted media will be shown in the selection pane as "filename.mkv", including the extension.

It would be nice for its behavior to be the same as in PowerPoint, in this regard.

As well, it would be nice to have an additional optional argument for choosing the name (if one wants it to be different from the original file name).