Move podsync script from fish to .local/bin

This commit is contained in:
Phantop 2020-08-21 16:30:11 -04:00
parent 355f55f28c
commit e6484bb7db
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +0,0 @@
function podsync
cd $D/Videos/YouTube/
./clean
tmux new -s 1 -d "command podsync -c $D/Videos/YouTube/config.toml"
end

8
.local/bin/podsync Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
cd $D/Videos/YouTube/
for f in */*.mp4; do
grep -q "$f" *.xml || rm "$f"
done
tmux new -s 1 -d "podsync-bin -c $D/Videos/YouTube/config.toml"