Skip to content

Commit

Permalink
Merge pull request #12211 from bbc/WSTEAM1-1343-live-radio-bff-changes
Browse files Browse the repository at this point in the history
WSTEAM1-1343: Move Live Radio Data Fetching to BFF
  • Loading branch information
HarveyPeachey authored Dec 6, 2024
2 parents a7fefa1 + 8002a71 commit 2e953c0
Show file tree
Hide file tree
Showing 58 changed files with 1,973 additions and 2,655 deletions.
104 changes: 43 additions & 61 deletions data/afaanoromoo/bbc_afaanoromoo_radio/liveradio.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,50 @@
{
"content": {
"blocks": [
{
"markupType": "plain_text",
"text": "Dhaggeeffadhaa",
"type": "heading"
},
{
"text": "Sagantaawwan keenya",
"type": "paragraph"
},
{
"available": true,
"caption": "",
"duration": "PT0S",
"embedding": false,
"externalId": "bbc_oromo_radio",
"format": "audio",
"id": "liveradio",
"live": true,
"subType": "primary",
"type": "version"
}
]
},
"metadata": {
"analyticsLabels": {
"contentType": "player-live",
"pageIdentifier": "afaanoromoo.bbc_afaanoromoo_radio.liveradio.page",
"pageTitle": "Dhaggeeffadhaa - BBC News Afaan Oromoo",
"producer": "AFAAN_OROMOO",
"producerId": "2"
},
"atiAnalytics": {},
"blockTypes": ["heading", "version", "paragraph"],
"createdBy": "afaanoromoo",
"firstPublished": 0,
"id": "urn:bbc:ares:ws_media:live:bbc_afaanoromoo_radio",
"data": {
"heading": "Dhaggeeffadhaa",
"bodySummary": "Sagantaawwan keenya",
"language": "om",
"lastPublished": 0,
"lastUpdated": 0,
"locators": {
"pipsUrn": "urn:bbc:pips:bbc_oromo_radio"
},
"options": {},
"tags": {},
"type": "WS-LIVE",
"version": "1.1.2"
},
"promo": {
"contentType": "WS-LIVE",
"id": "urn:bbc:ares:ws_media:live:bbc_afaanoromoo_radio",
"name": "Dhaggeeffadhaa",
"summary": "Sagantaawwan keenya",
"type": "link",
"uri": "/afaanoromoo/bbc_afaanoromoo_radio/liveradio"
"masterBrand": "bbc_oromo_radio",
"radioScheduleData": null,
"metadata": {
"type": "Live Radio",
"atiAnalytics": {
"contentId": "urn:bbc:ares:ws_media:live:bbc_afaanoromoo_radio",
"contentType": "player-live",
"pageIdentifier": "afaanoromoo.bbc_afaanoromoo_radio.liveradio.page",
"pageTitle": "Dhaggeeffadhaa - BBC News Afaan Oromoo"
}
},
"mediaBlock": [
{
"type": "liveRadio",
"model": [
{
"text": "Dhaggeeffadhaa",
"markupType": "plain_text",
"type": "heading"
},
{
"text": "Sagantaawwan keenya",
"type": "paragraph"
},
{
"id": "liveradio",
"subType": "primary",
"format": "audio",
"externalId": "bbc_oromo_radio",
"duration": "PT0S",
"caption": "",
"embedding": false,
"available": true,
"live": true,
"type": "version"
}
]
}
]
},
"relatedContent": {
"groups": [],
"site": {
"name": "afaanoromoo",
"subType": "simple",
"type": "simple",
"uri": "/afaanoromoo"
}
}
"contentType": "application/json; charset=utf-8"
}
132 changes: 76 additions & 56 deletions data/afrique/bbc_afrique_radio/liveradio.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,87 @@
{
"metadata": {
"id": "urn:bbc:ares:ws_media:live:bbc_afrique_radio",
"locators": {
"pipsUrn": "urn:bbc:pips:bbc_afrique_radio"
},
"type": "WS-LIVE",
"createdBy": "afrique",
"data": {
"heading": "BBC Afrique Radio",
"bodySummary": "Infos, musique et sports",
"language": "fr",
"lastUpdated": 0,
"firstPublished": 0,
"lastPublished": 0,
"options": {},
"analyticsLabels": {
"pageTitle": "BBC Afrique Radio - BBC News Afrique",
"pageIdentifier": "afrique.bbc_afrique_radio.liveradio.page",
"producerId": "3",
"contentType": "player-live",
"producer": "AFRIQUE"
},
"tags": {},
"version": "1.1.2",
"blockTypes": ["heading", "version", "paragraph"]
},
"content": {
"blocks": [
"id": "urn:bbc:ares:ws_media:live:bbc_afrique_radio",
"name": "BBC Afrique Radio",
"summary": "Infos, musique et sports",
"masterBrand": "bbc_afrique_radio",
"radioScheduleData": [
{
"id": "p0k01c4p",
"state": "next",
"startTime": "2024-11-29T18:00:00.000Z",
"link": "/afrique/bbc_afrique_radio/w17300vglvk3fwt",
"brandTitle": "BBC Soir",
"summary": "La grande édition d'information de la soirée ",
"duration": "PT10M"
},
{
"text": "BBC Afrique Radio",
"markupType": "plain_text",
"type": "heading"
"id": "p0k01c3n",
"state": "onDemand",
"startTime": "2024-11-29T12:20:00.000Z",
"link": "/afrique/bbc_afrique_radio/w172zzrjc8gt3ht",
"brandTitle": "A Vous L'antenne",
"summary": "Du lundi au vendredi les auditeurs réagissent à chaud sur les sujets qui rythment l'actualité ",
"duration": "PT10M"
},
{
"text": "Infos, musique et sports",
"type": "paragraph"
"id": "p0k01c3l",
"state": "onDemand",
"startTime": "2024-11-29T12:10:00.000Z",
"link": "/afrique/bbc_afrique_radio/w172zzx198sl87k",
"brandTitle": "Au Coeur De L'actu",
"summary": "Un jour, un thème pour aller plus en profondeur sur les sujets qui font bouger l’Afrique",
"duration": "PT10M"
},
{
"id": "liveradio",
"subType": "primary",
"format": "audio",
"externalId": "bbc_afrique_radio",
"duration": "PT0S",
"caption": "",
"embedding": false,
"available": true,
"live": true,
"type": "version"
"id": "p0k01c3j",
"state": "onDemand",
"startTime": "2024-11-29T12:00:00.000Z",
"link": "/afrique/bbc_afrique_radio/w17300vwb6vfcmp",
"brandTitle": "BBC Midi",
"summary": "Le point de l'actualité à la mi-journée",
"duration": "PT10M"
}
],
"metadata": {
"type": "Live Radio",
"atiAnalytics": {
"contentId": "urn:bbc:ares:ws_media:live:bbc_afrique_radio",
"contentType": "player-live",
"pageIdentifier": "afrique.bbc_afrique_radio.liveradio.page",
"pageTitle": "BBC Afrique Radio - BBC News Afrique"
}
},
"mediaBlock": [
{
"type": "liveRadio",
"model": [
{
"text": "BBC Afrique Radio",
"markupType": "plain_text",
"type": "heading"
},
{
"text": "Infos, musique et sports",
"type": "paragraph"
},
{
"id": "liveradio",
"subType": "primary",
"format": "audio",
"externalId": "bbc_afrique_radio",
"duration": "PT0S",
"caption": "",
"embedding": false,
"available": true,
"live": true,
"type": "version"
}
]
}
]
},
"promo": {
"name": "BBC Afrique Radio",
"summary": "Infos, musique et sports",
"uri": "/afrique/bbc_afrique_radio/liveradio",
"contentType": "WS-LIVE",
"id": "urn:bbc:ares::ws_live:bbc_afrique_radio",
"type": "link"
},
"relatedContent": {
"site": {
"subType": "simple",
"name": "afrique",
"uri": "/afrique",
"type": "simple"
},
"groups": []
}
"contentType": "application/json; charset=utf-8"
}
101 changes: 42 additions & 59 deletions data/amharic/bbc_amharic_radio/liveradio.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,50 @@
{
"metadata": {
"id": "urn:bbc:ares:ws_media:live:bbc_amharic_radio",
"locators": {
"pipsUrn": "urn:bbc:pips:bbc_amharic_radio"
},
"type": "WS-LIVE",
"createdBy": "amharic",
"data": {
"heading": "ያድምጡ",
"bodySummary": "ዝግጅቶቻችንን’",
"language": "am",
"lastUpdated": 0,
"firstPublished": 0,
"lastPublished": 0,
"options": {},
"analyticsLabels": {
"pageTitle": "ያድምጡ - BBC News አማርኛ",
"pageIdentifier": "amharic.bbc_amharic_radio.liveradio.page",
"producerId": "4",
"contentType": "player-live",
"producer": "AMHARIC"
"id": "urn:bbc:ares:ws_media:live:bbc_amharic_radio",
"name": "ያድምጡ",
"summary": "ዝግጅቶቻችንን’",
"masterBrand": "bbc_amharic_radio",
"radioScheduleData": null,
"metadata": {
"type": "Live Radio",
"atiAnalytics": {
"contentId": "urn:bbc:ares:ws_media:live:bbc_amharic_radio",
"contentType": "player-live",
"pageIdentifier": "amharic.bbc_amharic_radio.liveradio.page",
"pageTitle": "ያድምጡ - BBC News አማርኛ"
}
},
"tags": {},
"version": "1.1.2",
"blockTypes": ["heading", "version", "paragraph"]
},
"content": {
"blocks": [
"mediaBlock": [
{
"text": "ያድምጡ",
"markupType": "plain_text",
"type": "heading"
},
{
"text": "ዝግጅቶቻችንን’",
"type": "paragraph"
},
{
"id": "liveradio",
"subType": "primary",
"format": "audio",
"externalId": "bbc_amharic_radio",
"duration": "PT0S",
"caption": "",
"embedding": false,
"available": true,
"live": true,
"type": "version"
"type": "liveRadio",
"model": [
{
"text": "ያድምጡ",
"markupType": "plain_text",
"type": "heading"
},
{
"text": "ዝግጅቶቻችንን’",
"type": "paragraph"
},
{
"id": "liveradio",
"subType": "primary",
"format": "audio",
"externalId": "bbc_amharic_radio",
"duration": "PT0S",
"caption": "",
"embedding": false,
"available": true,
"live": true,
"type": "version"
}
]
}
]
},
"promo": {
"name": "ያድምጡ",
"summary": "ዝግጅቶቻችንን’",
"uri": "/amharic/bbc_amharic_radio/liveradio",
"contentType": "WS-LIVE",
"id": "urn:bbc:ares::ws_live:bbc_amharic_radio",
"type": "link"
},
"relatedContent": {
"site": {
"subType": "simple",
"name": "amharic",
"uri": "/amharic",
"type": "simple"
},
"groups": []
}
"contentType": "application/json; charset=utf-8"
}
Loading

0 comments on commit 2e953c0

Please sign in to comment.