From e6484bb7dbbdeae7a74ec2803025359ed1134606 Mon Sep 17 00:00:00 2001 From: Phantop Date: Fri, 21 Aug 2020 16:30:11 -0400 Subject: [PATCH] Move podsync script from fish to .local/bin --- .config/fish/functions/podsync.fish | 5 ----- .local/bin/podsync | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 .config/fish/functions/podsync.fish create mode 100755 .local/bin/podsync diff --git a/.config/fish/functions/podsync.fish b/.config/fish/functions/podsync.fish deleted file mode 100644 index ff6b1b2..0000000 --- a/.config/fish/functions/podsync.fish +++ /dev/null @@ -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 diff --git a/.local/bin/podsync b/.local/bin/podsync new file mode 100755 index 0000000..85ac28c --- /dev/null +++ b/.local/bin/podsync @@ -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"