fix script

This commit is contained in:
root
2018-10-22 11:14:25 +00:00
parent e3b1ea7a05
commit e5690dd64b
8 changed files with 969 additions and 3 deletions

4
scripts/yt2m3u Normal file → Executable file
View File

@@ -2,7 +2,7 @@
set -euo pipefail
IFS=$'\n\t'
echo "#EXT3MU
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)
@@ -28,4 +28,4 @@ videos=($videos)
for i in "${videos[@]}"; do
makeline "$i"
echo "ffmpeg2wav:youtube-dl:$i"
done
done