From 1b4b3526d83316406c896dccfc93b6c5c4c27827 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 30 Jan 2016 23:08:35 +0100 Subject: relive lives on live.ber --- configs/conferences/ffrl-routing-days-2016/download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/conferences/ffrl-routing-days-2016/download.sh b/configs/conferences/ffrl-routing-days-2016/download.sh index e778bd5..7af01d0 100755 --- a/configs/conferences/ffrl-routing-days-2016/download.sh +++ b/configs/conferences/ffrl-routing-days-2016/download.sh @@ -5,5 +5,5 @@ wget --no-check-certificate -q "https://mlsrv.de/public/routingdays16-schedule/s rm -f /tmp/schedule.xml /tmp/schedule.json # vod json -wget -q "http://live.dus.c3voc.de/relive/ffrl-routing-days/index.json" -O /tmp/vod.json && mv /tmp/vod.json vod.json +wget -q "http://live.ber.c3voc.de/releases/relive/ffrl-routing-days-2016/ffrl-routing-days/index.json" -O /tmp/vod.json && mv /tmp/vod.json vod.json rm -f /tmp/vod.json -- cgit v1.2.3 From 1b379a45c184f220b8e4419b1213e65da48246f7 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 26 Feb 2016 16:28:27 +0100 Subject: autoconfigure dg & cr based on eventcalender upcoming --- configs/conferences/chaosradio/config.php | 17 +++++++++++++---- configs/conferences/datengarten/config.php | 15 ++++++++++++--- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/configs/conferences/chaosradio/config.php b/configs/conferences/chaosradio/config.php index 5657957..6b971d9 100644 --- a/configs/conferences/chaosradio/config.php +++ b/configs/conferences/chaosradio/config.php @@ -1,9 +1,18 @@ getNextEvents(); +$upcoming_crs = array_values(array_filter($upcoming_events, function($event) { + return preg_match('/^cr[0-9]+$/i', $event['short_name']); +})); +$upcoming_cr = $upcoming_crs[0]; + +preg_match('/^cr([0-9]+)$/i', $upcoming_cr['short_name'], $m); + +$EPISODE = intval($m[1]); +$DATE = strtotime($upcoming_cr['start_date'].' 22:00'); +$TITLE = "Chaosradio $EPISODE"; +$IM_CCCB = ($upcoming_cr['location'] == 'CCCB'); $STREAM = $IM_CCCB ? 's5' : 'q2'; diff --git a/configs/conferences/datengarten/config.php b/configs/conferences/datengarten/config.php index f196d43..6327f1a 100644 --- a/configs/conferences/datengarten/config.php +++ b/configs/conferences/datengarten/config.php @@ -1,8 +1,17 @@ getNextEvents(); +$upcoming_dgs = array_values(array_filter($upcoming_events, function($event) { + return preg_match('/^dg[0-9]+$/i', $event['short_name']); +})); +$upcoming_dg = $upcoming_dgs[0]; + +preg_match('/^dg([0-9]+)$/i', $upcoming_dg['short_name'], $m); + +$EPISODE = intval($m[1]); +$DATE = strtotime($upcoming_dg['start_date'].' 22:00'); +$TITLE = "Datengarten $EPISODE"; $GLOBALS['CONFIG']['CONFERENCE'] = array( -- cgit v1.2.3