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
@@ -27,7 +27,7 @@ module.exports = {
async channels() {
const items = await axios
.get(
`https://contentapi-pe.cdn.telefonica.com/28/default/es-PE/contents/all?contentTypes=LCH&fields=Pid,Name&orderBy=contentOrder&limit=1000`
'https://contentapi-pe.cdn.telefonica.com/28/default/es-PE/contents/all?contentTypes=LCH&fields=Pid,Name&orderBy=contentOrder&limit=1000'
)
.then(r => r.data.Content.List)
.catch(console.error)
@@ -50,7 +50,7 @@ function parseTime(timestamp) {
return dayjs.unix(timestamp)
}
function parseItems(content, channel) {
function parseItems(content) {
const data = JSON.parse(content)
return data.Content || []