Skip to content

Instantly share code, notes, and snippets.

@BenWard
BenWard / gist:4189f5cf1452adac41fc
Last active August 29, 2015 14:06
Quick and dirty function to extract tracklistings from a BFF.FM show playlist and convert it into a Mixcloud compatible blob of text. Recognises gaps in songs and creates chapter breaks automatically.
(function mixcloudify (startHour) {
var TALK_BREAK_MINIMUM = 4, // minimum length to insert a talk break
showDate;
function showTime () {
var start = startHour.split(":").map(function (item) {
return padNumber(item);
});
return Date.parse([