From 157f36ac235792da8c351fdae546c8e6d554f8b1 Mon Sep 17 00:00:00 2001 From: theofficialomega <30985701+BellezaEmporium@users.noreply.github.com> Date: Wed, 17 Dec 2025 18:46:39 +0100 Subject: [PATCH] update stod2, need to move to syn.is --- sites/stod2.is/stod2.is.channels.xml | 25 +++++++++++++------------ sites/stod2.is/stod2.is.config.js | 6 +++--- sites/stod2.is/stod2.is.test.js | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/sites/stod2.is/stod2.is.channels.xml b/sites/stod2.is/stod2.is.channels.xml index cf152c53..1126c898 100644 --- a/sites/stod2.is/stod2.is.channels.xml +++ b/sites/stod2.is/stod2.is.channels.xml @@ -1,15 +1,16 @@ - Besta01 - Besta02 - Besta03 - Stöð 2 Sport 5 - Stöð 2 Sport - Stöð 2 Sport 2 - Stöð 2 Sport 3 - Stöð 2 Sport 4 - Stöð 2 Sport 6 - Stöð 2 - Stöð 2 Fjölskylda - Vodafone Sport + + + + Stöð 2 Sport + Stöð 2 Sport 2 + Stöð 2 Sport 3 + Stöð 2 Sport 4 + Stöð 2 Sport 5 + Stöð 2 Sport 6 + + + + diff --git a/sites/stod2.is/stod2.is.config.js b/sites/stod2.is/stod2.is.config.js index fc91355d..c3e84236 100644 --- a/sites/stod2.is/stod2.is.config.js +++ b/sites/stod2.is/stod2.is.config.js @@ -5,7 +5,7 @@ const axios = require('axios') dayjs.extend(utc) module.exports = { - site: 'stod2.is', + site: 'syn.is', days: 7, request: { cache: { @@ -13,7 +13,7 @@ module.exports = { } }, url({ channel, date }) { - return `https://api.stod2.is/dagskra/api/${channel.site_id}/${date.format('YYYY-MM-DD')}` + return `https://www.syn.is/api/epg/${channel.site_id}/${date.format('YYYY-MM-DD')}` }, parser: function ({ content }) { let data @@ -48,7 +48,7 @@ module.exports = { }, async channels() { try { - const response = await axios.get('https://api.stod2.is/dagskra/api') + const response = await axios.get('https://www.syn.is/api/epg/') if (!response.data || !Array.isArray(response.data)) { console.error('Error: No channels data found') return [] diff --git a/sites/stod2.is/stod2.is.test.js b/sites/stod2.is/stod2.is.test.js index c8ff849d..b16bb5eb 100644 --- a/sites/stod2.is/stod2.is.test.js +++ b/sites/stod2.is/stod2.is.test.js @@ -15,7 +15,7 @@ const channel = { site_id: 'stod2', xmltv_id: 'Stod2.is' } it('can generate valid url', () => { const generatedUrl = url({ date, channel }) - expect(generatedUrl).toBe('https://api.stod2.is/dagskra/api/stod2/2025-01-03') + expect(generatedUrl).toBe('https://www.syn.is/api/epg/stod2/2025-01-03') }) it('can parse response', () => {