mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-27 11:09:06 +01:00
feat: conveert mkv videos additionally
This commit is contained in:
parent
bc862f8834
commit
2125fd86b7
1
.gitignore
vendored
1
.gitignore
vendored
@ -40,3 +40,4 @@ testem.log
|
|||||||
# System files
|
# System files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
*.mkv
|
||||||
@ -80,7 +80,7 @@ export OUTPUT_DIR
|
|||||||
|
|
||||||
# Find and process videos
|
# Find and process videos
|
||||||
if [ -d "$INPUT_PATH" ]; then
|
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
|
else
|
||||||
move_video "$INPUT_PATH"
|
move_video "$INPUT_PATH"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user