Merge pull request #1035 from iptv-org/update-digiturk.com.tr

Fix digiturk.com.tr
This commit is contained in:
Aleksandr Statciuk
2022-08-28 01:39:38 +03:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ module.exports = {
}
function parseStart(item) {
return dayjs.unix(item.BroadcastTimeStamp, 'Europe/Istanbul')
return dayjs.tz(item.BroadcastStart, 'Europe/Istanbul')
}
function parseCategory(item) {

View File

@@ -29,15 +29,15 @@ it('can parse response', () => {
})
expect(results[0]).toMatchObject({
start: '2022-08-26T22:50:00.000Z',
stop: '2022-08-27T01:20:00.000Z',
start: '2022-08-26T19:50:00.000Z',
stop: '2022-08-26T22:20:00.000Z',
title: 'YABANCI SİNEMA "KİMLİKSİZ"',
description: `KİMLİĞİNİ KANITLAMAK İÇİN MACERALI BİR YOLCULUĞA ÇIKAR.`
})
expect(results[11]).toMatchObject({
start: '2022-08-27T23:30:00.000Z',
stop: '2022-08-28T00:45:00.000Z',
start: '2022-08-27T20:30:00.000Z',
stop: '2022-08-27T21:45:00.000Z',
title: 'PELİN ÇİFT İLE GÜNDEM ÖTESİ',
description: `ULUYOR. İLGİ ÇEKİCİ KONULARI VE UZMAN KONUKLARIYLA BİLDİĞİNİZDEN FAZLASINI EKRANA TAŞIYOR.`
})