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

@@ -1,4 +1,3 @@
const cheerio = require('cheerio')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const timezone = require('dayjs/plugin/timezone')
@@ -72,7 +71,7 @@ function parseStop(item, date) {
)
}
function parseItems(content, channel, date) {
function parseItems(content) {
const data = JSON.parse(content)
if (!data || !Array.isArray(data.data.Schedule.events)) return []