From cf52b0c3b0d64b970ac988631086ea0d3889460e Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 4 Jan 2025 17:01:56 +0300 Subject: [PATCH] Update stod2.is.config.js --- sites/stod2.is/stod2.is.config.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sites/stod2.is/stod2.is.config.js b/sites/stod2.is/stod2.is.config.js index 46eb685d..6ae2d1d4 100644 --- a/sites/stod2.is/stod2.is.config.js +++ b/sites/stod2.is/stod2.is.config.js @@ -39,8 +39,8 @@ module.exports = { description: item.lysing, actors: item.adalhlutverk, directors: item.leikstjori, - start: start.toISOString, - stop: stop.toISOString + start, + stop }) }) } @@ -48,21 +48,21 @@ module.exports = { return programs }, async channels() { - try { - const response = await axios.get('https://api.stod2.is/dagskra/api') - if (!response.data || !Array.isArray(response.data)) { - console.error('Error: No channels data found') - return [] + try { + const response = await axios.get('https://api.stod2.is/dagskra/api') + if (!response.data || !Array.isArray(response.data)) { + console.error('Error: No channels data found') + return [] } - return response.data.map(item => { - return { - lang: 'is', - site_id: item + return response.data.map(item => { + return { + lang: 'is', + site_id: item } }) } catch (error) { - console.error('Error fetching channels:', error) - return [] + console.error('Error fetching channels:', error) + return [] } } }