blob: f53549c6b02a8bd808f3dff27200a23b5c96d768 (
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 -maxdepth 1 | grep -q "[-]$id\\.ogg\$"); then
echo $uri
fi
|