From b4dca359c9ea9b86a66bdb5d05b999ecef6cf6e3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 4 Feb 2023 01:31:26 +0300 Subject: [PATCH] Update dsmart.com.tr.test.js --- sites/dsmart.com.tr/dsmart.com.tr.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sites/dsmart.com.tr/dsmart.com.tr.test.js b/sites/dsmart.com.tr/dsmart.com.tr.test.js index 04e1e0c7..34e1b067 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr.test.js +++ b/sites/dsmart.com.tr/dsmart.com.tr.test.js @@ -1,3 +1,4 @@ +// npm run channels:parse -- --config=./sites/dsmart.com.tr/dsmart.com.tr.config.js --output=./sites/dsmart.com.tr/dsmart.com.tr.channels.xml // npx epg-grabber --config=sites/dsmart.com.tr/dsmart.com.tr.config.js --channels=sites/dsmart.com.tr/dsmart.com.tr.channels.xml --output=guide.xml --timeout=30000 --days=2 const { parser, url } = require('./dsmart.com.tr.config.js') @@ -11,13 +12,13 @@ dayjs.extend(utc) const date = dayjs.utc('2023-01-16', 'YYYY-MM-DD').startOf('d') const channel = { - site_id: '5fe07d7acfef0b1593275751', + site_id: '3#5fe07d7acfef0b1593275751', xmltv_id: 'SinemaTV.tr' } it('can generate valid url', () => { expect(url({ date, channel })).toBe( - 'https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=500&day=2023-01-16' + 'https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=3&limit=1&day=2023-01-16' ) })