From 869d549a4ec6e4b927202ac699c8a0bd4bc2029f Mon Sep 17 00:00:00 2001 From: Quentin Gibeaux Date: Thu, 13 Jun 2019 15:36:55 +0200 Subject: [PATCH] add short description for main podcast's title --- podcasts/config/example.json | 1 + podcasts/config/lav-20190604.json | 1 + podcasts/scripts/make-all-podcasts.pl | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/podcasts/config/example.json b/podcasts/config/example.json index b5020a7..2e851f2 100644 --- a/podcasts/config/example.json +++ b/podcasts/config/example.json @@ -2,6 +2,7 @@ "short_date" : "AAAAMMDD", "long_date" : "DD MMMM AAAA", "ffmpeg_bin" : "./FFmpeg/ffmpeg", + "short_description" : "A - B - C", "chapters" : [ { "start_timestamp" : "HH:MM:SS.mmm", diff --git a/podcasts/config/lav-20190604.json b/podcasts/config/lav-20190604.json index ded1732..0037986 100644 --- a/podcasts/config/lav-20190604.json +++ b/podcasts/config/lav-20190604.json @@ -2,6 +2,7 @@ "short_date" : "20190604", "long_date" : "4 juin 2019", "ffmpeg_bin" : "../FFmpeg/ffmpeg", + "short_description" : "Framasoft - OpenAcadémie - Patrick Sinz", "chapters" : [ { "start_timestamp" : "00:02:20.45", diff --git a/podcasts/scripts/make-all-podcasts.pl b/podcasts/scripts/make-all-podcasts.pl index ae8a6e2..ff0302d 100755 --- a/podcasts/scripts/make-all-podcasts.pl +++ b/podcasts/scripts/make-all-podcasts.pl @@ -84,6 +84,7 @@ sub process { my $long_date = $data->{long_date}; my $source_name = "libre-a-vous-$short_date"; my $title = "Libre à vous ! du $long_date sur Cause Commune"; + my $short_description = $data->{short_description}; my $ffmpeg_bin = $data->{ffmpeg_bin}; my $option_mp3_meta_data_script; @@ -202,7 +203,7 @@ sub process { # putting metadata in main podcast my $url = "https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/$short_date/$source_name.ogg"; - my $command = "$meta_data_script -s \"$source_name.ogg\" -d \"output\" -u \"$url\" -t \"$title\" -p \"$ffmpeg_bin\" -y \"$year\" -m \"$option_mp3_meta_data_script\""; + my $command = "$meta_data_script -s \"$source_name.ogg\" -d \"output\" -u \"$url\" -t \"$title - $short_description\" -p \"$ffmpeg_bin\" -y \"$year\" -m \"$option_mp3_meta_data_script\""; if($dryrun) { print "$command\n"; } else {