summaryrefslogtreecommitdiffstats
path: root/bin/checkMissing
blob: 16cb47793af0490c54b3f555757661f6f5ca7301 (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\\.ogg\$"); then
  echo $uri
fi