From b393a47268e84535dc7949a5de5865a9f33bcc07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Sun, 21 Oct 2018 10:56:31 +0000 Subject: [PATCH] add header to generated m3u files --- scripts/yt2m3u | 2 ++ 1 file changed, 2 insertions(+) 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")