From 533d789a1a549bb8fb1aac940a0d8d6ed36e8c38 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 8 Nov 2015 12:23:14 +0100 Subject: add checkMissingmp3 --- bin/checkMissingmp3 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/checkMissingmp3 (limited to 'bin/checkMissingmp3') diff --git a/bin/checkMissingmp3 b/bin/checkMissingmp3 new file mode 100755 index 0000000..d7722d2 --- /dev/null +++ b/bin/checkMissingmp3 @@ -0,0 +1,9 @@ +#!/bin/sh + +uri=$1 +musicDir=${musicDir-./} +id=$(echo "$uri" | sed -n 's@^https\?://www\.youtube\.com/watch?v=@@p' | sed 's/#.*$//') + +if ! file=$(find $musicDir | grep -q "[-]$id\\.mp3\$"); then + echo $uri +fi -- cgit v1.2.3