mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
Update /sites
This commit is contained in:
parent
ca254a6df0
commit
c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions
|
@ -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) : {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue