DEV Community

chovy
chovy

Posted on Originally published at dev.profullstack.com

Every podcast is now a playlist you can put on the air

Every show on p0dcasters.com now hands out one more link beside its RSS feed: a playlist. https://p0dcasters.com/podcast/off-protocol/playlist.m3u is every episode of Off Protocol, newest first, as a plain M3U. Any player that opens a playlist by address plays the show through. nixamp does something better with it.

One paste, the whole show on the air

Paste that address into nixamp's link box and press Go live. The server reads the list once, then plays it entry by entry as one channel. Whoever is listening hears the next episode start when the last one ends, on the same connection. When the list runs out it goes round again, the way a station does. The channel is named by the list itself, so it shows up in the directory as "Off Protocol", not as a file name.

A dead entry is skipped rather than retried for ever. A list that is dead all the way through is closed. An entry that drops part way is dialled again from where it was, which is what already happened to a single stream.

Open in nixamp

The show page has three buttons for this: the playlist itself, a copy of its address for another player's link box, and Open in nixamp. That last one lands on nixamp.com with the playlist already in the box and Go live beside it. Pick a server, press the button, and the show is on the air for anyone with the link or the phone code.

What the file holds

The M3U is the extended kind. Each entry carries the episode's title and length, and the show's artwork. The addresses are the publisher's own, exactly as they appear in the feed, not a proxy of ours, so the file is good anywhere. It is cached for half an hour and refreshed from the feed after that.

The list is newest first because that is how the feed and the page are, and it is what a listener opening a show expects.

A bug found on the way

Podcast files carry their artwork inside the MP3, and to ffprobe that artwork is a one-frame video stream. nixamp read it as a picture, carried the episode as a film, asked for pictures that never came, and wrote nothing. Cover art is no longer a picture. That fix reaches any pasted MP3, not only lists.

nixamp 0.19.2 has the link box entry point and the naming; 0.19.0 brought the playlist channel and the cover art fix. Both are on the servers now.

Top comments (0)