mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 17:10:07 -04:00
Update znbc.co.zm.config.js
This commit is contained in:
parent
ce88787d45
commit
b15ad13706
1 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,10 @@ module.exports = {
|
||||||
const row = (item.querySelector('td > p') || { textContent: '' }).textContent
|
const row = (item.querySelector('td > p') || { textContent: '' }).textContent
|
||||||
const parts = row.split(' ')
|
const parts = row.split(' ')
|
||||||
const time = parts.shift()
|
const time = parts.shift()
|
||||||
const title = parts.filter(str => str && /\S/.test(str)).join(' ')
|
const title = parts
|
||||||
|
.filter(str => str && /\S/g.test(str))
|
||||||
|
.map(i => i.trim())
|
||||||
|
.join(' ')
|
||||||
|
|
||||||
if (!time || !title) return false
|
if (!time || !title) return false
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue