From f6e59defb8aa7e6c01882cc2573ddf6769b68433 Mon Sep 17 00:00:00 2001 From: xingluo Date: Sun, 16 Nov 2025 19:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20MusicLyrics.lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MusicLyrics.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MusicLyrics.lua b/MusicLyrics.lua index ddb7a44..6e3cb33 100644 --- a/MusicLyrics.lua +++ b/MusicLyrics.lua @@ -217,7 +217,7 @@ local function displayLyrics(url, notzh, fontType, colorsConfig) -- 获取歌词数据 local response = http.get(url) if not response then - print("1 无法连接到服务器 URL: "..URL) + print("1 无法连接到服务器 URL: "..url) return end @@ -233,7 +233,7 @@ local function displayLyrics(url, notzh, fontType, colorsConfig) -- 解析JSON数据 local data = textutils.unserialiseJSON(content) if not data or not data.lrc or not data.lrc.lyric then - print("2 无法解析歌词数据") + print("2 无法解析歌词数据 URL: "..url) return end @@ -245,7 +245,7 @@ local function displayLyrics(url, notzh, fontType, colorsConfig) end if #lyrics == 0 and #tlyrics == 0 then - print("没有找到有效歌词") + print("3 没有找到有效歌词 URL: "..url) return end @@ -296,7 +296,7 @@ local function displayLyrics(url, notzh, fontType, colorsConfig) end if #lyricPairs == 0 then - print("没有找到匹配的歌词对") + print("没有找到匹配的歌词对 URL: "..url) return end