Fix linter issues in sites/

This commit is contained in:
freearhey
2025-01-01 12:27:22 +03:00
parent d6d20b6413
commit 5df982bb7c
129 changed files with 3316 additions and 3226 deletions

View File

@@ -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,