home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add video catalog building and playing
[khome.git]
/
home
/
bin
/
video_catalog_update
diff --git a/home/bin/video_catalog_update
b/home/bin/video_catalog_update
new file mode 100755
(executable)
index 0000000..
8a1acc3
--- /dev/null
+++ b/
home/bin/video_catalog_update
@@ -0,0
+1,14
@@
+#! /bin/sh
+
+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"
This page took
0.027029 seconds
and
4
git commands to generate.