#!/bin/bash

for i in $(cat songs.txt); do
    id="$(echo "$i"|cut -d= -f2)"
    if [ "$(ls *$id.ogg 2> /dev/null)" = "" ]; then
	youtube-dl --extract-audio --audio-format vorbis "$i"
    fi
done
