start
This commit is contained in:
commit
a5a9b8bf9e
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
usage: $(basename $0) [playlist.m3u] [directory]
|
||||
|
||||
[directory] is where you want the files to end up
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ -n $1 ] || usage
|
||||
[ -n $2 ] || usage
|
||||
|
||||
playlist="$1"
|
||||
directory="$2"
|
||||
|
||||
mkdir -p "$directory"
|
||||
|
||||
files="$(grep 'file://' "$playlist")"
|
||||
|
||||
for i in $files; do
|
||||
rsync "$i" "$directory/"
|
||||
done
|
|
@ -0,0 +1,7 @@
|
|||
#EXTM3U
|
||||
#EXTINF:258,Kontroll Csoport - Kis piros bombázó
|
||||
file:///Volumes/music/1983%201_2%20CD/04%20Kis%20piros%20bomba%CC%81zo%CC%81.mp3
|
||||
#EXTINF:375,Amon Düül II - Yeti Talks to Yogi (Improvisation)
|
||||
file:///Volumes/music/amon%20dull%202%20-%20yeti/Amon%20Du%CC%88u%CC%88l%20II%20-%20Yeti%20%5BGermany%20Bonus%20Tracks%5D%20-%2009%20-%20Yeti%20Talks%20to%20Yogi%20%28Improvisation%29.flac
|
||||
#EXTINF:173,Black Sabbath - Paranoid
|
||||
file:///Volumes/music/Black%20Sabbath/Paranoid/02%20Paranoid.mp3
|
Loading…
Reference in New Issue