home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Break-out video finder as independent script
[khome.git]
/
home
/
bin
/
video_catalog_update
diff --git
a/home/bin/video_catalog_update
b/home/bin/video_catalog_update
index
8a1acc3
..
ea27e00
100755
(executable)
--- a/
home/bin/video_catalog_update
+++ b/
home/bin/video_catalog_update
@@
-2,13
+2,4
@@
set -e
set -e
-find "$DIR_VIDEO" \
- -type f \
- -print0 \
-| xargs \
- -0 \
- -P "$(nproc)" \
- -I{} \
- sh -c 'printf "%s %s\n" $(mimetype -b "{}") "{}"' \
-| awk '/^video/ {sub($1 " +", ""); print}' \
-> "$FILE_VIDEO_CATALOG"
+video-find "$DIR_VIDEO" | xargs -0 -I% echo % > "$FILE_VIDEO_CATALOG"
This page took
0.024945 seconds
and
4
git commands to generate.