diff --git a/scripts/yt2m3u b/scripts/yt2m3u index fc69218..87889cd 100644 --- a/scripts/yt2m3u +++ b/scripts/yt2m3u @@ -2,6 +2,8 @@ set -euo pipefail IFS=$'\n\t' +echo "#EXT3MU + function get_duration { preconvert=$(youtube-dl --get-duration -- "$1" | perl -p -i -e 's/(\d\d?):(\d\d)/$1 minutes+$2 seconds/' 2> /dev/null) convert=$(units "$preconvert")