Update update.js

Fixes "TypeError: Cannot set properties of undefined (setting 'site')"

7074531240
This commit is contained in:
Aleksandr Statciuk 2023-02-07 03:18:14 +03:00
parent 51f59d42cd
commit b3bc0f5461

View file

@ -71,6 +71,8 @@ async function save(filepath, programs) {
for (let programData of programs) {
let channelData = api_channels[programData.channel]
if (!channelData) continue
channelData.site = programData.site
channelData.lang = programData.titles[0].lang