Update visionplus.id channels.

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha
2023-11-06 10:26:14 +07:00
parent 910b782ec9
commit 3237afec15
2 changed files with 44 additions and 52 deletions

View File

@@ -24,7 +24,7 @@ module.exports = {
)}&channel_ids=${channel.site_id}`
},
parser({ content, channel, date }) {
let programs = []
const programs = []
const items = parseItems(content, channel, date)
items.forEach(item => {
let prev = programs[programs.length - 1]
@@ -64,6 +64,7 @@ module.exports = {
const [, site_id] = loc.match(/channel\/(\d+)\//) || [null, null]
return {
lang: 'en',
site_id,
name: $item('video\\:title').text().trim()
}