home
/
code
/
khome.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add video catalog building and playing
[khome.git]
/
home
/
bin
/
video_catalog_update
1
#! /bin/sh
2
3
set -e
4
5
find
"
$DIR_VIDEO
"
\
6
-type
f \
7
-print0
\
8
|
xargs
\
9
-0
\
10
-P
"$(nproc)"
\
11
-I
{}
\
12
sh
-c
'printf "%s %s
\n
" $(mimetype -b "{}") "{}"'
\
13
|
awk
'/^video/ {sub(
$1
" +", ""); print}'
\
14
>
"
$FILE_VIDEO_CATALOG
"
This page took
0.056291 seconds
and
4
git commands to generate.