diff --git a/sites/tvgids.nl/tvgids.nl.channels.xml b/sites/tvgids.nl/tvgids.nl.channels.xml index 112445da..9e379693 100644 --- a/sites/tvgids.nl/tvgids.nl.channels.xml +++ b/sites/tvgids.nl/tvgids.nl.channels.xml @@ -1,36 +1,47 @@ + Al Jazeera Engels + CNN + Extreme Sports Channel + TV E + RTBF La 1 + Mezzo + Rai Uno ARD BBC 1 BBC 2 BBC 4 + BBC News + Canal+ Action Cartoonito Discovery Science E! Entertainment Euronews + HGTV NH Paramount Network RTL Sat 1 STAR Channel + Viaplay TV VRT 1 WDR Fernsehen + Ziggo Sport 2 + Ziggo Sport 3 + Ziggo Sport 4 + Ziggo Sport 5 + Ziggo Sport 6 3Sat 24Kitchen - Al Jazeera Engels Animal Planet ARTE AT5 - BBC Entertainment BBC First - BBC World - Beleef KPN BVN VRT Canvas Cartoon Network CBS Reality CNBC - CNN Comedy Central Crime + Investigation Discovery @@ -42,7 +53,6 @@ ESPN 1 Eurosport 1 Eurosport 2 - Extreme Sports Channel Film1 Action Film1 Drama Film1 Family @@ -51,11 +61,9 @@ HISTORY INPLUS Investigation Discovery - VRT Ketnet + Ketnet L1 TV - RTBF La 1 Love Nature - Mezzo MTV National Geographic Nat Geo Wild @@ -79,7 +87,6 @@ Pebble TV Play4 PRO 7 - Rai Uno RTL 4 RTL 5 RTL 7 @@ -93,15 +100,12 @@ RTV Rijnmond RTV Utrecht SBS 6 - SBS 9 ShortsTV Stingray Classica - RTBF La 2 + RTBF Tipik TLC - TRT World TV5MONDE TV 538 - TV E TV Noord Oranje TV RTV West @@ -110,10 +114,5 @@ XITE ZDF Ziggo Sport - Ziggo Sport Docu - Ziggo Sport Golf - Ziggo Sport Racing - Ziggo Sport Select - Ziggo Sport Tennis - Ziggo Sport Voetbal - \ No newline at end of file + TRT World + diff --git a/sites/tvgids.nl/tvgids.nl.test.js b/sites/tvgids.nl/tvgids.nl.test.js index 790fb41f..88da3f0a 100644 --- a/sites/tvgids.nl/tvgids.nl.test.js +++ b/sites/tvgids.nl/tvgids.nl.test.js @@ -7,14 +7,16 @@ const customParseFormat = require('dayjs/plugin/customParseFormat') dayjs.extend(customParseFormat) dayjs.extend(utc) -const date = dayjs.utc('2023-06-13', 'YYYY-MM-DD').startOf('d') +const date = dayjs.utc('2025-01-19', 'YYYY-MM-DD').startOf('d') const channel = { site_id: 'npo1', xmltv_id: 'NPO1.nl' } it('can generate valid url', () => { - expect(url({ date, channel })).toBe('https://www.tvgids.nl/gids/13-06-2023/npo1') + jest.useFakeTimers().setSystemTime(new Date('2025-01-17')) + + expect(url({ date, channel })).toBe('https://www.tvgids.nl/gids/19-01-2025/npo1') }) it('can generate valid url for today', () => { @@ -32,16 +34,16 @@ it('can parse response', () => { }) expect(results[0]).toMatchObject({ - start: '2023-06-12T21:57:00.000Z', - stop: '2023-06-12T22:58:00.000Z', + start: '2025-01-18T22:57:00.000Z', + stop: '2025-01-18T23:58:00.000Z', title: 'Op1', image: 'https://tvgidsassets.nl/v301/upload/o/carrousel/op1-451542641.jpg', description: "Talkshow met wisselende presentatieduo's, live vanuit Amsterdam." }) expect(results[61]).toMatchObject({ - start: '2023-06-14T00:18:00.000Z', - stop: '2023-06-14T00:48:00.000Z', + start: '2025-01-20T01:18:00.000Z', + stop: '2025-01-20T01:48:00.000Z', title: 'NOS Journaal', image: 'https://tvgidsassets.nl/v301/upload/n/carrousel/nos-journaal-452818771.jpg', description: