From a2ad1f56ab6a7698147f3543323a5e3e48f703e3 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 18 Jun 2022 19:38:45 +0300 Subject: [PATCH] Update editor.js --- scripts/commands/channels/editor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/commands/channels/editor.js b/scripts/commands/channels/editor.js index 82432924..c838b72e 100644 --- a/scripts/commands/channels/editor.js +++ b/scripts/commands/channels/editor.js @@ -22,7 +22,7 @@ async function main() { channels = result.channels await api.channels.load() for (const channel of channels) { - if (channel.xmltv_id) continue + if (channel.id) continue let choices = await getOptions(channel) const question = { name: 'option', @@ -35,17 +35,17 @@ async function main() { switch (selected.option) { case 'Overwrite...': const input = await getInput(channel) - channel.xmltv_id = input.xmltv_id + channel.id = input.xmltv_id break case 'Skip...': - channel.xmltv_id = '-' + channel.id = '-' break default: const [name, xmltv_id] = selected.option .replace(/ \[.*\]/, '') .split('|') .map(i => i.trim().replace(newLabel, '')) - channel.xmltv_id = xmltv_id + channel.id = xmltv_id break } })