Ajout scrit pour générer fichier m3u
Voir https://wiki.april.org/w/Proc%C3%A9dure_pour_l%27organisation_des_%C3%A9missions_Libre_%C3%A0_vous_!#Ajouter_dans_la_playlist_de_Libre_.C3.A0_vous_.21_les_musiques_diffus.C3.A9es_dans_l.27.C3.A9mission
This commit is contained in:
parent
2a4c9258d3
commit
b336341135
17
playlist/exportm3u.sh
Executable file
17
playlist/exportm3u.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# = 0 ]
|
||||||
|
then
|
||||||
|
echo "Il manque en paramètres les fichiers audio à traiter"
|
||||||
|
exit 1
|
||||||
|
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}'`
|
||||||
|
echo "#EXTINF:$duree,$nom - $titre"
|
||||||
|
echo "https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/musiques/$file"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user