mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-04-01 10:59:45 +08:00
fix: 修复获取自定义歌单接口报错
This commit is contained in:
@@ -580,6 +580,7 @@ async def playlistupdatename(
|
||||
@app.get("/playlistnames")
|
||||
async def getplaylistnames(Verifcation=Depends(verification)):
|
||||
names = xiaomusic.get_play_list_names()
|
||||
log.info(f"names {names}")
|
||||
return {
|
||||
"ret": "OK",
|
||||
"names": names,
|
||||
|
||||
@@ -1176,7 +1176,7 @@ class XiaoMusic:
|
||||
# 获取所有自定义歌单
|
||||
def get_play_list_names(self):
|
||||
custom_play_list = self.get_custom_play_list()
|
||||
return custom_play_list.keys()
|
||||
return list(custom_play_list.keys())
|
||||
|
||||
# 获取歌单中所有歌曲
|
||||
def play_list_musics(self, name):
|
||||
|
||||
Reference in New Issue
Block a user