Lot's of awesome changes and some added scripts

This commit is contained in:
Chris Cochrun 2020-10-02 06:04:41 -05:00
parent ed91c15381
commit d36ce8b8b9
23 changed files with 303 additions and 374 deletions

13
scripts/drvid.fish Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env fish
mkdir transcoded
for vid in *.mp4
touch $vid.txt
echo $vid >>$vid.txt
set newvid (sed "s/\.mp4//g" $vid.txt)
echo $newvid
ffmpeg -i $vid -c:v dnxhd -profile:v 3 -qscale:v 9 -c:a pcm_s16le $newvid.mov
mv $newvid.mov ./transcoded/$newvid.mov
rm $vid.txt
echo \n finished transcoding new file is in transcoded/$newvid.mov
end

15
scripts/lbrympv.fish Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/fish
set arg (getopt -s sh : $argv)
set arg (fish -c "for el in $arg; echo \$el; end")
echo "arguments are: " $arg
for val in $arg
if test $val = "--"
echo "value in arg is: " $val
else
echo "value in arg is: " $val
mpv -(youtube-dl (curl $arg | rg embed | sed 's/.*embed\(.*\)">.*/\1/' | cut -d '"' -f1 | awk -v prefix="https://cdn.lbryplayer.xyz/api/v2/streams/free" '{print prefix $0}'))
end
end

15
scripts/lbryytdl.fish Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/fish
set arg (getopt -s sh : $argv)
set arg (fish -c "for el in $arg; echo \$el; end")
echo "arguments are: " $arg
for val in $arg
if test $val = "--"
echo "value in arg is: " $val
else
echo "value in arg is: " $val
youtube-dl (curl $arg | rg embed | sed 's/.*embed\(.*\)">.*/\1/' | cut -d '"' -f1 | awk -v prefix="https://cdn.lbryplayer.xyz/api/v2/streams/free" '{print prefix $0}')
end
end

4
scripts/mailsync.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/sh
mbsync --all
mu index