Commit 4f5f3839 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added documentation about music acquisition

parent 34ec7b54
Pipeline #63 passed with stages
in 2 minutes and 14 seconds
#! /bin/bash
set -e
[ -z $1 ] && echo "Path to list file missing" && exit 1
echo "This will download tracks from zip archives listed in $1"
LIST_CONTENT=$(cat $1)
mkdir -p data/music
cd data/music
echo "Downloading files..."
echo "$LIST_CONTENT" | grep "^[^#;]" | xargs -n 1 curl -LO
echo "Unzipping archives..."
find . -name "*.zip" | while read filename; do
mkdir $dirname
unzip -o -d "$dirname" "$filename";
echo "Done!"
# You can get a pretty list of open music here:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment