new scripts

This commit is contained in:
Stefen Auris 2022-12-23 22:06:41 -05:00
parent 29ed94da16
commit f8c6f33188
2 changed files with 14 additions and 0 deletions

11
scripts/server_bin/gif_purge.sh Executable file
View 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

3
twitch_kody.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
cd /home/stev/Videos/Twitch/Kodykins
yt-dlp -f 720p60 https://www.twitch.tv/curlykody/videos