-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Quote file paths in calls to ffmpeg #132
Conversation
This needs some testing on linux, I am pretty sure that we have just removed the quotes because having them was an issue on linux #86 |
I did a local test in Windows to verify that this fix works there. All good. |
or reformatted:
|
Without this change, using files with spaces works fine on linux. Interestingly, with this change the file does get copied correctly still, but any calls with ffmpeg appear to fail |
@PeterC89 could you put that into a helper function, to make it less duplicated and clearer as to why it is done. I am currently working on writing a couple of basic unit tests which will help guard against this, and I've found another couple of cases of issues with quotes |
@Julusian Done, I've also made it so it escapes spaces on non-Windows platforms with a |
No linux doesn't appear to like that. |
7f72f1c
to
25af3f7
Compare
36e41a6
to
24f47e3
Compare
24f47e3
to
b16f597
Compare
b16f597
to
a63a821
Compare
Thanks! |
Thanks @Julusian |
Maybe @nytamin can help with that? |
About Me
The pull request is posted on behalf of the BBC.
Type of Contribution
This is a: Bug fix
Current Behavior
File paths with spaces in break ffmpeg calls
New Behavior
File paths are enclosed in quotes (think I got them all)File paths are escaped depending on platform
Testing Instructions
Other Information
Fixes #131
Status