aboutsummaryrefslogtreecommitdiff
path: root/configs/conferences/rc3/create_config.php
diff options
context:
space:
mode:
authorAndreas Hubel2020-12-21 23:56:29 +0100
committerAndreas Hubel2020-12-21 23:56:29 +0100
commit162f32a7399ecc15f1568530a912afab03b0b149 (patch)
treeb7c74d0750099f895e36e99d64c44e96697a9b64 /configs/conferences/rc3/create_config.php
parenteef90e5820f55639836fce71f25b2d0f3841a3ba (diff)
rC3: add all the channels (some are proably still missing)
Diffstat (limited to 'configs/conferences/rc3/create_config.php')
-rw-r--r--configs/conferences/rc3/create_config.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/configs/conferences/rc3/create_config.php b/configs/conferences/rc3/create_config.php
new file mode 100644
index 0000000..3016317
--- /dev/null
+++ b/configs/conferences/rc3/create_config.php
@@ -0,0 +1,45 @@
+<?php
+
+$query = '{channels{nodes{name,slug,url:schedule_url,schedule_room,room_guid}}}';
+$data = json_decode(file_get_contents('https://c3voc.de/wiki/lib/exe/graphql2.php?query='.$query), true)['data'];
+$channels = $data['channels']['nodes'];
+
+foreach ( $channels as $c ) {
+ $schedule_name = $c['schedule_room'] ?: $c['name'];
+
+ echo <<<EOT
+ '$c[slug]' => array(
+ 'DISPLAY' => '$c[name]',
+ 'DISPLAY_SHORT' => '$c[name]',
+ 'STREAM' => '$c[slug]',
+ 'PREVIEW' => true,
+ 'TRANSLATION' => [
+ ],
+
+ 'SD_VIDEO' => true,
+ 'HD_VIDEO' => true,
+ 'DASH' => true,
+ 'HLS' => true,
+ 'AUDIO' => true,
+ 'SLIDES' => false,
+ 'MUSIC' => false,
+ 'SCHEDULE' => true,
+ 'SCHEDULE_NAME' => '$schedule_name',
+ 'ROOM_GUID' => '$c[room_guid]',
+ 'FEEDBACK' => true,
+ 'SUBTITLES' => false,
+ 'EMBED' => true,
+ 'IRC' => true,
+ 'IRC_CONFIG' => array(
+ 'DISPLAY' => '#rc3-$c[slug] @ hackint',
+ 'URL' => 'https://webirc.hackint.org/#irc://irc.hackint.org/#rc3-$c[slug]',
+ ),
+ 'TWITTER' => true,
+ 'TWITTER_CONFIG' => array(
+ 'DISPLAY' => '#rC3-$c[slug] @ mastodon/twitter',
+ 'TEXT' => '#rC3-$c[slug]',
+ ),
+ ),
+
+EOT;
+} \ No newline at end of file