WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.83k stars 414 forks source link

The file “auto edit.fcpxml” could not be imported. when the file name has spaces #209

Closed shrikant2002 closed 2 years ago

shrikant2002 commented 2 years ago

The file “auto edit.fcpxml” could not be imported.

The resource could not be found. (asset: /fcpxml[1]/resources[1]/asset[1])

it forgets to add %20 in the file path

WyattBlue commented 2 years ago

What export option are you using?

shrikant2002 commented 2 years ago

--frame_margin 8 --export_to_final_cut_pro

WyattBlue commented 2 years ago

This should be patched in 20w40a.

What I did was use the built-in method to encode the path.

-       pathurl = 'file://' + inp.abspath
+       from pathlib import Path
+       pathurl = Path(inp.abspath).as_uri()

Please check to confirm that it's working @shrikant2002 .