From 47da92a610b0df9ebb72a6e475c78baec9cf2136 Mon Sep 17 00:00:00 2001
From: Aleksandr Statciuk <github@oiya.xyz>
Date: Fri, 31 Dec 2021 10:19:23 +0300
Subject: [PATCH] Includes NSFW channels into the channels.json

---
 scripts/commands/generate-playlists.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/commands/generate-playlists.js b/scripts/commands/generate-playlists.js
index d8005a1ea..f28112188 100644
--- a/scripts/commands/generate-playlists.js
+++ b/scripts/commands/generate-playlists.js
@@ -290,7 +290,7 @@ async function generateIndexRegion() {
 async function generateChannelsJson() {
   logger.info('Generating channels.json...')
 
-  await generator.generate(`${PUBLIC_PATH}/channels.json`, {}, { format: 'json' })
+  await generator.generate(`${PUBLIC_PATH}/channels.json`, {}, { format: 'json', includeNSFW: true })
 }
 
 async function setUp() {