Tooling für das Veröffentlichen von Pentaradio-Folgen
Go to file
Stefan Majewsky b76992e395 add `schedule` subcommand 2023-11-10 00:09:06 +01:00
.gitignore init 2022-04-17 00:27:08 +02:00
Makefile init 2022-04-17 00:27:08 +02:00
README.md translate README to English 2022-04-21 22:08:26 +02:00
generate.go generate correct audio title 2022-04-23 20:32:53 +02:00
go.mod init 2022-04-17 00:27:08 +02:00
main.go add `schedule` subcommand 2023-11-10 00:09:06 +01:00
news.xml.gotpl generate correct audio title 2022-04-23 20:32:53 +02:00
scan.go implement generate command 2022-04-21 22:55:16 +02:00
schedule.go add `schedule` subcommand 2023-11-10 00:09:06 +01:00
upload.go implement upload command 2022-04-21 21:54:59 +02:00

README.md

pentaradio-tools

A tool to automate parts of the publishing process of Pentaradio episodes.

Installation

Compile and install with make and make install. A Go compiler is required.

For the pentaradio-tools upload subcommand, ftp.c3d2.de must be configured in the SSH client config, for example:

$ cat $HOME/.ssh/config
...
Host ftp.c3d2.de
  User ftpupload
  Port 2022
  IdentityFile /home/username/.ssh/id_ed25519
  IdentitiesOnly yes
...

Usage

There are two subcommands, both without any additional arguments or options:

  • pentaradio-tools upload uploads all relevant files (audios, chapter marks file, shownotes file) to ftp.c3d2.de.
  • pentaradio-tools generate generates an XML file containing a news entry for c3d2-web.

Both subcommands expect the following files in the working directory:

pentaradio-YYYY-MM-DD.m4a
pentaradio-YYYY-MM-DD.mp3
pentaradio-YYYY-MM-DD.ogg
pentaradio-YYYY-MM-DD.opus
chapter-pentaradio-YYYY-MM-DD.dat
shownotes-pentaradio-YYYY-MM-DD.txt

The date must be identical on all files.

The chapter marks file must contain the same marks that have been given to Auphonic. The usual process is to write the chapter marks file during editing and then give it to Auphonic's file importer.

The shownotes file must contain the contents of the shownotes pad. It is technically a Markdown file, but for historical reasons we are using the .txt extension. The shownotes must be in the following format:

# Pentaradio vom DD. Mmm YYYY
# Titel: "<title>"

Mit <author-names>.

<short-description>

## News
...

The title, author names, and short description are used for the c3d2-web news entry.