mirror of
https://github.com/iptv-org/epg
synced 2026-04-30 22:46:58 -04:00
date fix?
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = {
|
|||||||
subTitle: (item.grandparentTitle && item.title !== item.grandparentTitle) ? item.title : null,
|
subTitle: (item.grandparentTitle && item.title !== item.grandparentTitle) ? item.title : null,
|
||||||
description: item.summary,
|
description: item.summary,
|
||||||
rating: item.contentRating || null,
|
rating: item.contentRating || null,
|
||||||
date: item.originallyAvailableAt ? dayjs(item.originallyAvailableAt).format('YYYY-MM-DD') : (item.year || null),
|
date: item.originallyAvailableAt || item.year || null,
|
||||||
categories: parseCategories(item),
|
categories: parseCategories(item),
|
||||||
season: item.parentIndex || null,
|
season: item.parentIndex || null,
|
||||||
episode: item.index || null,
|
episode: item.index || null,
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ it('can parse response', () => {
|
|||||||
rating: 'TV-PG',
|
rating: 'TV-PG',
|
||||||
season: 8,
|
season: 8,
|
||||||
episode: 13,
|
episode: 13,
|
||||||
date: '2015-02-15'
|
date: '2015-02-15T00:00:00Z'
|
||||||
})
|
})
|
||||||
|
|
||||||
// Testing another item: "Riders on the Storm"
|
// Testing another item: "Riders on the Storm"
|
||||||
|
|||||||
Reference in New Issue
Block a user