From 06b204c4e8361b1707ab6dd2763e4e9d6213ea40 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 3 Aug 2021 02:30:26 +0300 Subject: [PATCH] Update generate.js --- scripts/generate.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/generate.js b/scripts/generate.js index 459497894..3c96c6d7c 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -8,15 +8,15 @@ async function main() { await loadDatabase() createRootDirectory() createNoJekyllFile() - generateIndex() - generateCategoryIndex() + // generateIndex() + // generateCategoryIndex() generateCountryIndex() generateLanguageIndex() - generateCategories() - generateCountries() - generateLanguages() - generateChannelsJson() - showResults() + // generateCategories() + // generateCountries() + // generateLanguages() + // generateChannelsJson() + // showResults() } async function loadDatabase() { @@ -74,13 +74,13 @@ function generateCountryIndex() { .removeDuplicates() .get() for (const channel of channels) { - const category = channel.category + const groupTitle = channel.group.title const nsfw = channel.isNSFW() - channel.category = country.name || '' + channel.group.title = country.name || '' if (!nsfw) { file.append(filename, channel.toString()) } - channel.category = category + channel.group.title = groupTitle } } } @@ -97,13 +97,13 @@ function generateLanguageIndex() { .removeDuplicates() .get() for (const channel of channels) { - const category = channel.category + const groupTitle = channel.group.title const nsfw = channel.isNSFW() - channel.category = language.name || '' + channel.group.title = language.name || '' if (!nsfw) { file.append(filename, channel.toString()) } - channel.category = category + channel.group.title = groupTitle } } }