From 81ca98388f8df451f0f47ead1e0c931c265ee54d Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 27 Oct 2022 04:43:17 +0300 Subject: [PATCH] Update update.js --- scripts/commands/guides/update.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index 6ef36a1a..e43cad4c 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -63,8 +63,9 @@ async function main() { let countryPrograms = db_programs.filter(p => countryChannels.includes(p.channel)) let langGroups = _.groupBy(countryPrograms, 'lang') + let countryLanguages = _.uniq(['eng', ...country.languages]) - for (let langCode of country.languages) { + for (let langCode of countryLanguages) { const lang = convertLangCode(langCode, '3', '1') if (!lang) continue