new scripts
This commit is contained in:
parent
29ed94da16
commit
f8c6f33188
2 changed files with 14 additions and 0 deletions
11
scripts/server_bin/gif_purge.sh
Executable file
11
scripts/server_bin/gif_purge.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
#Deletes all MP4's that are less than 4500ms long
|
||||
#this could be refactored to take advantage of fd's parallel execution with -x
|
||||
#but should be limited with -j for number of threads
|
||||
fdfind -e mp4 | while read i; do
|
||||
length=$(mediainfo --Inform="Video;%Duration%" "$i")
|
||||
if [[ $length -le 4500 ]]; then
|
||||
rm "$i"
|
||||
#kioclient move $i "trash:/"
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue