From 3c9ec9dc18389d77ec2c47e84fe6c96f94769617 Mon Sep 17 00:00:00 2001 From: xingluo Date: Sun, 16 Nov 2025 19:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20music168.lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- music168.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/music168.lua b/music168.lua index ced315a..7c42be8 100644 --- a/music168.lua +++ b/music168.lua @@ -2,9 +2,9 @@ --*获取程序所在目录 local mypath = "/"..fs.getDir(shell.getRunningProgram()) -if not fs.exists(mypath.."/lib/basalt.lua") then shell.run("wget https://git.liulikeji.cn/GitHub/Basalt/releases/download/v1.6.6/basalt.lua lib/basalt.lua") end -if not fs.exists(mypath.."/speakerlib.lua") then shell.run("wget https://git.liulikeji.cn/xingluo/ComputerCraft-Music168-Player/raw/branch/main/speakerlib.lua") end -if not fs.exists(mypath.."/MusicLyrics.lua") then shell.run("wget https://git.liulikeji.cn/xingluo/ComputerCraft-Music168-Player/raw/branch/main/MusicLyrics.lua") end +if not fs.exists(mypath.."/lib/basalt.lua") then shell.run("wget https://git.liulikeji.cn/GitHub/Basalt/releases/download/v1.6.6/basalt.lua "..mypath.."/lib/basalt.lua") end +if not fs.exists(mypath.."/speakerlib.lua") then shell.run("wget https://git.liulikeji.cn/xingluo/ComputerCraft-Music168-Player/raw/branch/main/speakerlib.lua"..mypath.."/speakerlib.lua") end +if not fs.exists(mypath.."/MusicLyrics.lua") then shell.run("wget https://git.liulikeji.cn/xingluo/ComputerCraft-Music168-Player/raw/branch/main/MusicLyrics.lua"..mypath.."/MusicLyrics.lua") end --*GUI库导入 basalt = require(mypath.."/lib/basalt") @@ -329,7 +329,7 @@ function speakerp() play_Gui[4]:stop() play_Gui[4]:execute(function () - shell.run(mypath.."/MusicLyrics.lua http://music168.liulikeji.cn:15843/api/song/lyric?id=".._G.music168_music_id.." "..px) + shell.run(mypath.."MusicLyrics.lua http://music168.liulikeji.cn:15843/api/song/lyric?id=".._G.music168_music_id.." "..px) end) play_Gui[4]:injectEvent("char","w") sleep(0.1)