Add slug support
This commit is contained in:
parent
9d5d1b7e66
commit
9ab2b6a9f2
15
index.js
15
index.js
|
@ -2,6 +2,18 @@ var channel_here = "60dd7f55-9f88-4de6-ad98-b9c4e2810300";
|
|||
var channel_main_1 = "rc1";
|
||||
var channel_main_2 = "rc2";
|
||||
|
||||
// Not included in Frab XML
|
||||
slug_map = {
|
||||
bitwaescherei: "feb91cb1-eb66-43f1-a86f-f8d43909fbe0",
|
||||
c3lounge: "ffa2f0d2-ca0b-41b6-a5cc-78ffc3fe15ff",
|
||||
chaoszone: "084fed6f-8da2-4870-b8c2-7a2b1dce88bd",
|
||||
csh: "ebc42052-10f7-4aef-bbe9-cfe9026880cc",
|
||||
cwtv: "48f5bce3-5b46-44d8-9f36-90bed9bd4be0",
|
||||
hacc: "60dd7f55-9f88-4de6-ad98-b9c4e2810300",
|
||||
r3s: "c4a577e2-52e7-4f6f-a5c0-e3822d64f84a",
|
||||
sendezentrum: "feb91cb1-eb66-43f1-a86f-f8d43909fbe0",
|
||||
}
|
||||
|
||||
var fahrplan = {};
|
||||
var tweets = {};
|
||||
|
||||
|
@ -153,6 +165,9 @@ function update_tweet_ticker() {
|
|||
if (result.room !== undefined)
|
||||
channel_here = result.room;
|
||||
|
||||
if (slug_map[channel_here] !== undefined)
|
||||
channel_here = slug_map[channel_here];
|
||||
|
||||
update_fahrplan();
|
||||
update_tweets();
|
||||
setInterval(update_fahrplan,60000);
|
||||
|
|
Loading…
Reference in New Issue