#!/bin/sh -xv

url=$1

if test “$url” = “”

then

echo “url manquante”

exit

fi

rm -rf totoflop

mkdir totoflop

cd totoflop

youtube-dl -f 18 –extract-audio –audio-format mp3 “$url”

normalize “$(ls *.mp3)”

mv “$(ls *.mp3)” ..

cd ..

rmdir totoflop