From b43fd973b0afde2cac03cf2863b6fbf8a6a81749 Mon Sep 17 00:00:00 2001 From: develop202 Date: Wed, 4 Feb 2026 16:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=93=BE=E6=8E=A5txt?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/zbpro.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/utils/zbpro.js b/utils/zbpro.js index 6f594b3..ce37a09 100644 --- a/utils/zbpro.js +++ b/utils/zbpro.js @@ -84,11 +84,6 @@ async function getAllURL() { } channel.title = channel.title.replace("-", ""); - - if (channel?.province != lastChannelCate) { - channelsURLTXT.push(`${channel?.province},#genre#`) - lastChannelCate = channel?.province - } for (const url of channel?.urls) { i += 1 let decryptURL = AESdecrypt(url) @@ -139,6 +134,10 @@ async function getAllURL() { // console.log(domain) } } + if (channel?.province != lastChannelCate) { + channelsURLTXT.push(`${channel?.province},#genre#`) + lastChannelCate = channel?.province + } const channelURLM3U = `#EXTINF:-1 tvg-id="${channel?.title}" tvg-name="${channel?.title}" tvg-logo="" group-title="${channel?.province}",${channel.title}\n${decryptURL}` const channelURLTXT = `${channel?.title},${decryptURL}` if (sumChannel == 0) {