diff --git a/playlist/exportm3u.sh b/playlist/exportm3u.sh index 72f1703..9cdba4b 100755 --- a/playlist/exportm3u.sh +++ b/playlist/exportm3u.sh @@ -9,8 +9,8 @@ fi for file in $* do duree=`mediainfo $file | awk '/Duration/ {print $3*60+$5}' |head -1` - nom=`mediainfo $file | awk -F: '/Performer/ {print $2}'` - titre=`mediainfo $file | awk -F : '/Track name/ {print $2}'` + nom=`mediainfo $file | awk -F: '/Performer/ {print $2}' |sed '1,$s/ //'` + titre=`mediainfo $file | awk -F : '/Track name/ {print $2}' |sed '1,$s/ //'` echo "#EXTINF:$duree,$nom - $titre" echo "https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/musiques/$file" done