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
+2 -2
View File
@@ -8,7 +8,7 @@ module.exports = {
channel.site_id
}&server_time=true`
},
parser: function ({ content, channel, date }) {
parser: function ({ content }) {
let programs = []
const items = parseItems(content)
items.forEach(item => {
@@ -36,7 +36,7 @@ function parseStop(item) {
return dayjs.unix(item.end_utc)
}
function parseItems(content, channel) {
function parseItems(content) {
const parsed = JSON.parse(content)
return parsed.data.prog || []