mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update dstv.com.config.js
This commit is contained in:
@@ -21,9 +21,9 @@ module.exports = {
|
||||
const details = await loadProgramDetails(item)
|
||||
programs.push({
|
||||
title: item.Title,
|
||||
description: details.Synopsis,
|
||||
icon: details.ThumbnailUri,
|
||||
category: details.SubGenres,
|
||||
description: parseDescription(details),
|
||||
icon: parseIcon(details),
|
||||
category: parseCategory(details),
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item)
|
||||
})
|
||||
@@ -48,6 +48,18 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
function parseDescription(details) {
|
||||
return details ? details.Synopsis : null
|
||||
}
|
||||
|
||||
function parseIcon(details) {
|
||||
return details ? details.ThumbnailUri : null
|
||||
}
|
||||
|
||||
function parseCategory(details) {
|
||||
return details ? details.SubGenres : null
|
||||
}
|
||||
|
||||
async function loadProgramDetails(item) {
|
||||
const url = `https://www.dstv.com/umbraco/api/TvGuide/GetProgramme?id=${item.Id}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user