Merge pull request #2730 from iptv-org/tohenk/fix-mncvision.id

Guard against empty program description on mncvision.id.
This commit is contained in:
Aleksandr Statciuk 2025-03-29 07:50:29 +03:00 committed by GitHub
commit f3c4918d44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')