From c540a3044cd24e65f81cef8506b3859f8fce29ef Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 14 Nov 2020 14:02:57 +0000 Subject: Initial commit --- main.go | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..d440abd --- /dev/null +++ b/main.go @@ -0,0 +1,133 @@ +// Copyright 2020 Nick White. +// Use of this source code is governed by the GPLv3 +// license that can be found in the LICENSE file. + +// bbcschedule lists a day schedule from a BBC radio station (which +// can be in the past, present or future), including IDs that work +// with get_iplayer. +// +// This uses the BBC's broadcasts/schedules api, which is roughly +// documented at https://rms.api.bbc.co.uk/docs and +// https://rms.api.bbc.co.uk/docs/swagger.json +// +// An alternative to these APIs would be doing what get_iplayer does +// in get_links_schedule_mojo and get_links_schedule_json and +// extracting the contents of the