mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Guard against empty program description on mncvision.id.
Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
parent
30dc0517be
commit
bd5cdcf892
1 changed files with 1 additions and 2 deletions
|
@ -129,8 +129,7 @@ async function parseItems(content, date, cookies) {
|
||||||
}
|
}
|
||||||
await doFetch(queues, (queue, res) => {
|
await doFetch(queues, (queue, res) => {
|
||||||
const $item = queue.i
|
const $item = queue.i
|
||||||
const $page = cheerio.load(res)
|
const description = res ? cheerio.load(res)('.synopsis').text().trim() : null
|
||||||
const description = $page('.synopsis').text().trim()
|
|
||||||
const start = parseStart($item, date)
|
const start = parseStart($item, date)
|
||||||
const duration = parseDuration($item)
|
const duration = parseDuration($item)
|
||||||
const stop = start.add(duration, 'm')
|
const stop = start.add(duration, 'm')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue