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