diff --git a/sites/tvtv.us/tvtv.us.config.js b/sites/tvtv.us/tvtv.us.config.js index 35dc556a..6767ccd2 100644 --- a/sites/tvtv.us/tvtv.us.config.js +++ b/sites/tvtv.us/tvtv.us.config.js @@ -18,6 +18,7 @@ module.exports = { items.forEach(item => { programs.push({ title: parseTitle(item), + sub_title: parseSubtitle(item), description: parseDescription(item), category: parseCategory(item), season: parseSeason(item), @@ -99,6 +100,10 @@ function parseTitle(item) { return item.program.title } +function parseSubtitle(item) { + return item.program.episodeTitle +} + function parseDescription(item) { return item.program.longDescription } diff --git a/sites/tvtv.us/tvtv.us.test.js b/sites/tvtv.us/tvtv.us.test.js index af932dc2..2153da64 100644 --- a/sites/tvtv.us/tvtv.us.test.js +++ b/sites/tvtv.us/tvtv.us.test.js @@ -34,6 +34,7 @@ it('can parse response', () => { start: '2022-01-20T00:00:00.000Z', stop: '2022-01-20T00:30:00.000Z', title: 'Reflect and Renew With Kevin Naidoo', + sub_title: 'Empowerment', description: `Kevin demonstrates a meditation and yoga practice to reclaim his courage and confidence.`, category: ['Health'], season: 1, @@ -44,6 +45,7 @@ it('can parse response', () => { start: '2022-01-20T00:30:00.000Z', stop: '2022-01-20T01:00:00.000Z', title: 'Four Senses', + sub_title: 'Sizzled & Seared', description: `Everything is sizzled and seared as chef Corbin Tomaszeski joins Christine and Carl in the kitchen.`, category: ['House/garden'], icon: 'https://tvtv.us/gn/i/assets/p10464580_b_v7_aa.jpg?w=240&h=360'