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