Skip to content
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

Handle filenames with spaces in them #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Beirdo
Copy link

@Beirdo Beirdo commented Jul 7, 2019

This allows filenames with spaces in them to work correctly. My sonarr/radarr setup auto-renames all files to having spaces in them, so I needed this to work.

The trick is two-fold... hand in the arguments to subprocess.check_output as a list, not a string... and do NOT use a shell to run an executable as the shell will also mess with the arguments.

While I was at it, I cleaned up the unnecessary changing of directories in the use of mediainfo.

@timmy61109
Copy link

Hello, I feel that this open source project is no longer ahead. If you want to go forward for this project, you can transfer Pull Requests to multimediainfo. This is a project forkd by MediaInfo.

Technology from Google Translate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants