mirror of
https://github.com/iptv-org/epg
synced 2026-04-28 05:26:59 -04:00
Fix linter issues in sites/
This commit is contained in:
@@ -13,11 +13,11 @@ module.exports = {
|
||||
site: 'visionplus.id',
|
||||
days: 2,
|
||||
url({ date, channel }) {
|
||||
return `https://www.visionplus.id/managetv/tvinfo/events/schedule?language=${languages[channel.lang]}&serviceId=${channel.site_id}&start=${date.format(
|
||||
'YYYY-MM-DD'
|
||||
)}T00%3A00%3A00Z&end=${date.add(1, 'd').format(
|
||||
'YYYY-MM-DD'
|
||||
)}T00%3A00%3A00Z&view=cd-events-grid-view`
|
||||
return `https://www.visionplus.id/managetv/tvinfo/events/schedule?language=${
|
||||
languages[channel.lang]
|
||||
}&serviceId=${channel.site_id}&start=${date.format('YYYY-MM-DD')}T00%3A00%3A00Z&end=${date
|
||||
.add(1, 'd')
|
||||
.format('YYYY-MM-DD')}T00%3A00%3A00Z&view=cd-events-grid-view`
|
||||
},
|
||||
parser({ content, channel }) {
|
||||
const programs = []
|
||||
@@ -26,7 +26,13 @@ module.exports = {
|
||||
for (const ev of json.evs) {
|
||||
if (ev.sid === channel.site_id) {
|
||||
const title = ev.con && ev.con.loc ? ev.con.loc[0].tit : ev.con.oti
|
||||
const [, , season, , episode] = title.match(/( S(\d+))?(, Ep (\d+))/) || [null, null, null, null, null]
|
||||
const [, , season, , episode] = title.match(/( S(\d+))?(, Ep (\d+))/) || [
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
programs.push({
|
||||
title,
|
||||
description: ev.con && ev.con.loc ? ev.con.loc[0].syn : null,
|
||||
|
||||
Reference in New Issue
Block a user