From e2e2e5dfa1bff321039393b0e79b2bd8c8aa5c0f Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Mon, 16 Dec 2024 18:09:26 +0100 Subject: [PATCH] feat: conveert mkv videos additionally --- .gitignore | 43 +++++++++++++++++++++++++++++++++++++++++++ Bash/convert.sh | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f3113d --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# Compiled output +/dist +/tmp +/out-tsc +/bazel-out + +# Node +/node_modules +npm-debug.log +yarn-error.log + +# IDEs and editors +.idea/ +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# Visual Studio Code +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history/* + +# Miscellaneous +/.angular/cache +.sass-cache/ +/connect.lock +/coverage +/libpeerconnection.log +testem.log +/typings + +# System files +.DS_Store +Thumbs.db +*.mkv \ No newline at end of file diff --git a/Bash/convert.sh b/Bash/convert.sh index 3e03cc5..7c02225 100755 --- a/Bash/convert.sh +++ b/Bash/convert.sh @@ -80,7 +80,7 @@ export OUTPUT_DIR # Find and process videos if [ -d "$INPUT_PATH" ]; then - find "$INPUT_PATH" -type f -name "*.mp4" -o -name "*.mkv" -o -name "*.avi" -o -name "*.webm" -exec bash -c 'move_video "$0"' {} \; + find "$INPUT_PATH" \( -name "*.mkv" -o -name "*.mp4" -o -name "*.avi" -o -name "*.webm" \) -type f -exec bash -c 'move_video "$0"' {} \; else move_video "$INPUT_PATH" fi