oe1archive.py

A little tool to query the Ö1 7 Tage archive online and print the MP3 URLs of selected broadcasts. It uses the JSON API exposed on http://audioapi.orf.at to receive the list of broadcasts provided by Ö1 and to extract the necessary information to provide a URL of a MP3 recording of selected broadcasts.

Download

The current version is available on git.sthu.org and on github.

Usage

The plugin can be invoked with -h to get a list of options.

% ./oe1archive.py -h
Usage:
    ./oe1archive.py -h, --help
    ./oe1archive.py -c, --choose
    ./oe1archive.py -s, --search TITLE

The option ‘choose’ interactively asks you for the date and broadcast you are interested in. The option ‘search’ allows you to search for broadcasts containing (i.e., regular expression) the given term in the title or subtitle descriptions.

% ./oe1archive.py -s jazz

Thu 01.06.2017  17:30:12   Spielräume
  http://loopstream01.apa.at/?channel=oe1&shoutcast=0&id=2017-06-01_1730_tl_51_7DaysThu37_375701.mp3

Sat 03.06.2017  23:13:06   Die Ö1 Jazznacht
  http://loopstream01.apa.at/?channel=oe1&shoutcast=0&id=2017-06-03_2313_tl_51_7DaysSat30_377481.mp3

Sun 04.06.2017  00:04:53   Die Ö1 Jazznacht
  http://loopstream01.apa.at/?channel=oe1&shoutcast=0&id=2017-06-04_0004_tl_51_7DaysSat32_377521.mp3


% oe1archive.py -c
Choose a date:
  [0]  Thu 01. Jun 2017
  [1]  Fri 02. Jun 2017
  [2]  Sat 03. Jun 2017
  [3]  Sun 04. Jun 2017
  [4]  Mon 05. Jun 2017
  [5]  Tue 06. Jun 2017
  [6]  Wed 07. Jun 2017
  [7]  Thu 08. Jun 2017
Date: 6

Choose a broadcast:
  [ 0]  04:59:48  Nachrichten
  [ 1]  05:03:34  Guten Morgen Österreich
  [ 2]  05:59:58  Frühjournal
  [ 3]  06:09:50  Guten Morgen Österreich
  [ 4]  06:56:11  Gedanken für den Tag
  [ 5]  07:00:00  Morgenjournal (I)
  [ 6]  07:33:28  Guten Morgen Österreich
  [ 7]  07:52:00  Leporello
...
  [52]  00:59:49  Nachrichten
  [53]  01:03:05  Die Ö1 Klassiknacht
Broadcast: 5

http://loopstream01.apa.at/?channel=oe1&shoutcast=0&id=2017-06-07_0700_tl_51_7DaysWed6_380101.mp3