Created
May 14, 2011 19:48
-
-
Save metade/972558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--#set var="has_video" value="1"--> | |
<!--#if expr="$has_video=1" --> | |
<!--#config timefmt="%H%M" --><!--#set var="c5_time" value="${DATE_LOCAL}" --> | |
<!-- TESTING <!--#echo var="c5_time"--> --> | |
<!--#if expr="(${c5_time} >= 2000 && ${c5_time} < 2100)" --> | |
<!-- 20:00 - 21:00 --> | |
<!--#set var="video0_pid" value="bbc_three"--> | |
<!--#set var="video0_title" value="BBC Three"--> | |
<!--#set var="video0_description" value="Watch BBC Three online"--> | |
<!--#set var="video1_pid" value="stream5"--> | |
<!--#set var="video1_title" value="Main Stage"--> | |
<!--#set var="video1_description" value="Watch Main Stage sets live."--> | |
<!--#set var="video2_pid" value="stream6"--> | |
<!--#set var="video2_title" value="INMWT Stage"--> | |
<!--#set var="video2_description" value="Watch INMWT Stage performances."--> | |
<!--#set var="video3_pid" value="stream8"--> | |
<!--#set var="video3_title" value="More Stages"--> | |
<!--#set var="video3_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#set var="video4_pid" value="stream3"--> | |
<!--#set var="video4_title" value="Performance highlights"--> | |
<!--#set var="video4_description" value="Performance highlights"--> | |
<!--#set var="video5_pid" value="stream4"--> | |
<!--#set var="video5_title" value="On Stage highlights"--> | |
<!--#set var="video5_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#elif expr="(${c5_time} >= 2100 && ${c5_time} < 2200)" --> | |
<!-- 21:00 - 22:00 --> | |
<!--#set var="video0_pid" value="bbc_three"--> | |
<!--#set var="video0_title" value="BBC Three"--> | |
<!--#set var="video0_description" value="Watch BBC Three online"--> | |
<!--#set var="video1_pid" value="stream5"--> | |
<!--#set var="video1_title" value="Main Stage"--> | |
<!--#set var="video1_description" value="Watch Main Stage sets live."--> | |
<!--#set var="video2_pid" value="stream6"--> | |
<!--#set var="video2_title" value="INMWT Stage"--> | |
<!--#set var="video2_description" value="Watch INMWT Stage performances."--> | |
<!--#set var="video3_pid" value="stream8"--> | |
<!--#set var="video3_title" value="More Stages"--> | |
<!--#set var="video3_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#set var="video4_pid" value="stream3"--> | |
<!--#set var="video4_title" value="Performance highlights"--> | |
<!--#set var="video4_description" value="Performance highlights"--> | |
<!--#set var="video5_pid" value="stream4"--> | |
<!--#set var="video5_title" value="On Stage highlights"--> | |
<!--#set var="video5_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#elif expr="(${c5_time} >= 2200 && ${c5_time} < 2300)" --> | |
<!-- 22:00 - 23:00 --> | |
<!--#set var="video0_pid" value="stream8"--> | |
<!--#set var="video0_title" value="More Stages"--> | |
<!--#set var="video0_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#set var="video1_pid" value="stream3"--> | |
<!--#set var="video1_title" value="Performance highlights"--> | |
<!--#set var="video1_description" value="Performance highlights"--> | |
<!--#set var="video2_pid" value="stream4"--> | |
<!--#set var="video2_title" value="On Stage highlights"--> | |
<!--#set var="video2_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#elif expr="(${c5_time} >= 1000 && ${c5_time} < 1200)" --> | |
<!-- 10:00 - 12:00 --> | |
<!--#set var="video0_pid" value="stream7"--> | |
<!--#set var="video0_title" value="Radio 1 TV"--> | |
<!--#set var="video0_description" value="Watch Radio 1 online."--> | |
<!--#set var="video1_pid" value="stream8"--> | |
<!--#set var="video1_title" value="More Stages"--> | |
<!--#set var="video1_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#else--> | |
<!-- Sunday afternoon --> | |
<!--#set var="video0_pid" value="stream7"--> | |
<!--#set var="video0_title" value="Radio 1 TV"--> | |
<!--#set var="video0_description" value="Watch Radio 1 online."--> | |
<!--#set var="video1_pid" value="stream5"--> | |
<!--#set var="video1_title" value="Main Stage"--> | |
<!--#set var="video1_description" value="Watch Main Stage sets live."--> | |
<!--#set var="video2_pid" value="stream6"--> | |
<!--#set var="video2_title" value="INMWT Stage"--> | |
<!--#set var="video2_description" value="Watch INMWT Stage performances."--> | |
<!--#set var="video3_pid" value="stream8"--> | |
<!--#set var="video3_title" value="More Stages"--> | |
<!--#set var="video3_description" value="Best Bits from BBC Introducing and Outdoor Stages."--> | |
<!--#endif--> | |
<script type = "text/javascript" > | |
var feedArr = new Array({ | |
<!--#if expr="$video0_pid"--> | |
"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video0_pid" -->.xml", | |
"title": "<!--#echo var="video0_title" -->", | |
"description": "<!--#echo var="video0_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video0_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--><!--#if expr="$video1_pid"-->, | |
{"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video1_pid" -->.xml", | |
"title": "<!--#echo var="video1_title" -->", | |
"description": "<!--#echo var="video1_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video1_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--><!--#if expr="$video2_pid"-->, | |
{"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video2_pid" -->.xml", | |
"title": "<!--#echo var="video2_title" -->", | |
"description": "<!--#echo var="video2_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video2_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--><!--#if expr="$video3_pid"-->, | |
{"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video3_pid" -->.xml", | |
"title": "<!--#echo var="video3_title" -->", | |
"description": "<!--#echo var="video3_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video3_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--><!--#if expr="$video4_pid"-->, | |
{"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video4_pid" -->.xml", | |
"title": "<!--#echo var="video4_title" -->", | |
"description": "<!--#echo var="video4_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video4_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--><!--#if expr="$video5_pid"-->, | |
{"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video5_pid" -->.xml", | |
"title": "<!--#echo var="video5_title" -->", | |
"description": "<!--#echo var="video5_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video5_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--> <!--#if expr="$video6_pid"-->, | |
{"feed": "http://www.bbc.co.uk/radio1/bigweekend/2011/playlists/<!--#echo var="video6_pid" -->.xml", | |
"title": "<!--#echo var="video6_title" -->", | |
"description": "<!--#echo var="video6_description" -->", | |
"brand_title": "Radio 1", | |
"brand_id": "<!--#echo var="video6_pid" -->", | |
"masterbrand_title": "BBC Radio 1", | |
"masterbrand_url": "/radio1" | |
}<!--#endif--> | |
); | |
</script> | |
<!--#endif --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment