网上的工具太鸡肋,无法命名B站截取的音乐
这里用cmd截取并命名
但是只能运行在电脑上,所以说这顶多算是个cmd对于json文件的处理方式。
chcp 65001
dir /b /a:d>a.txt
setlocal enabledelayedexpansion
md project
pause
for /f %%p in (a.txt) do (
cd %%p
dir /b /a:d>a.txt
for /f %%l in (a.txt) do (
cd %%l
for /f "delims=, tokens=6-7" %%w in (entry.json) do (echo %%w>asd.txt)
for %%E in (asd.txt) do (
set /p OP=<asd.txt
set O=!OP:"=!
set OQ=!O:title:=!
set OW=!OQ:/=!
set OE=!OW:\=!
set T=!OE:uio=!
echo !T!>t.txt
)
for /f %%J in (t.txt) do (
set /p HJ=<t.txt
cd 64
cd 32
cd 80
echo !HJ!>j.txt
ren audio.m4s "!HJ!".mp3
move "!HJ!".mp3 ../../../project
cd ..)
cd ..
)
cd ..
)