Update /sites

This commit is contained in:
freearhey 2023-10-02 06:35:33 +03:00
parent ca254a6df0
commit c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions

View file

@ -20,7 +20,7 @@ module.exports = {
return `https://www.programetv.ro/post/${channel.site_id}/${daysOfWeek[day]}/`
},
parser: function ({ content, channel }) {
parser: function ({ content }) {
let programs = []
const data = parseContent(content)
if (!data || !data.shows) return programs
@ -57,7 +57,7 @@ function parseStop(item) {
}
function parseContent(content) {
const [_, data] = content.match(/var pageData = ((.|[\r\n])+);\n/) || [null, null]
const [, data] = content.match(/var pageData = ((.|[\r\n])+);\n/) || [null, null]
return data ? JSON.parse(data) : {}
}