summaryrefslogtreecommitdiffstats
path: root/bin/checkMissingmp3
blob: d7722d2906c0c0d4857d052821493529b488d108 (plain)
1
2
3
4
5
6
7
8
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