X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fvideo_catalog_update;fp=home%2Fbin%2Fvideo_catalog_update;h=ea27e00aee4b7cfbdac9c7157c74d8bc376398fc;hb=e415783fdf0ad1d6d83a98914df312b933de00ea;hp=8a1acc348aca024924100391f7824ec9bdbde44a;hpb=db59ed305eb999635792fa0459fa4c0df3b4ba2e;p=khome.git diff --git a/home/bin/video_catalog_update b/home/bin/video_catalog_update index 8a1acc3..ea27e00 100755 --- a/home/bin/video_catalog_update +++ b/home/bin/video_catalog_update @@ -2,13 +2,4 @@ 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"