feat: 增加了根据歌单下载的功能,修复了多个音乐一块下载时文件名格式无效的问题,优化代码
增加了根据歌单下载的功能,修复了多个音乐一块下载时文件名格式无效的问题,优化代码
This commit is contained in:
@@ -103,6 +103,8 @@ def get_song_lyric(identify: str | int | dict,
|
||||
|
||||
bprint(Fore.YELLOW + "\t-> 歌曲:" + Style.RESET_ALL + f"{name} - {artists}", bar)
|
||||
filename = f"{lyric_format % {'name': name, 'artists': artists}}.lrc"
|
||||
if len(filename) >= 128:
|
||||
filename = filename[:123] + ".lrc"
|
||||
|
||||
try:
|
||||
info = post(f"https://music.163.com/api/song/media?id={identify}").json()
|
||||
|
||||
Reference in New Issue
Block a user