add short description for main podcast's title
This commit is contained in:
parent
c591dec87a
commit
869d549a4e
@ -2,6 +2,7 @@
|
|||||||
"short_date" : "AAAAMMDD",
|
"short_date" : "AAAAMMDD",
|
||||||
"long_date" : "DD MMMM AAAA",
|
"long_date" : "DD MMMM AAAA",
|
||||||
"ffmpeg_bin" : "./FFmpeg/ffmpeg",
|
"ffmpeg_bin" : "./FFmpeg/ffmpeg",
|
||||||
|
"short_description" : "A - B - C",
|
||||||
"chapters" : [
|
"chapters" : [
|
||||||
{
|
{
|
||||||
"start_timestamp" : "HH:MM:SS.mmm",
|
"start_timestamp" : "HH:MM:SS.mmm",
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
"short_date" : "20190604",
|
"short_date" : "20190604",
|
||||||
"long_date" : "4 juin 2019",
|
"long_date" : "4 juin 2019",
|
||||||
"ffmpeg_bin" : "../FFmpeg/ffmpeg",
|
"ffmpeg_bin" : "../FFmpeg/ffmpeg",
|
||||||
|
"short_description" : "Framasoft - OpenAcadémie - Patrick Sinz",
|
||||||
"chapters" : [
|
"chapters" : [
|
||||||
{
|
{
|
||||||
"start_timestamp" : "00:02:20.45",
|
"start_timestamp" : "00:02:20.45",
|
||||||
|
@ -84,6 +84,7 @@ sub process {
|
|||||||
my $long_date = $data->{long_date};
|
my $long_date = $data->{long_date};
|
||||||
my $source_name = "libre-a-vous-$short_date";
|
my $source_name = "libre-a-vous-$short_date";
|
||||||
my $title = "Libre à vous ! du $long_date sur Cause Commune";
|
my $title = "Libre à vous ! du $long_date sur Cause Commune";
|
||||||
|
my $short_description = $data->{short_description};
|
||||||
my $ffmpeg_bin = $data->{ffmpeg_bin};
|
my $ffmpeg_bin = $data->{ffmpeg_bin};
|
||||||
|
|
||||||
my $option_mp3_meta_data_script;
|
my $option_mp3_meta_data_script;
|
||||||
@ -202,7 +203,7 @@ sub process {
|
|||||||
|
|
||||||
# putting metadata in main podcast
|
# 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 $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) {
|
if($dryrun) {
|
||||||
print "$command\n";
|
print "$command\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user