Update tvprofil.com.config.js
This commit is contained in:
@@ -22,6 +22,7 @@ module.exports = {
|
|||||||
parser: function ({ content, channel, date }) {
|
parser: function ({ content, channel, date }) {
|
||||||
let programs = []
|
let programs = []
|
||||||
const result = parseContent(content)
|
const result = parseContent(content)
|
||||||
|
if (!result) return programs
|
||||||
const items = parseItems(result.data.program)
|
const items = parseItems(result.data.program)
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
const $item = cheerio.load(item)
|
const $item = cheerio.load(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user