解决第三方播放链接为空的问题

This commit is contained in:
shaonianzhetnan 2023-03-29 22:22:11 +08:00
parent 54e0ddeb0e
commit c3fe6d17d6
2 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ class CloudMusic():
result = response.json()
# print(result)
if len(result) > 0:
result = list(filter(lambda x: x.get('songId') is not None, result))
result = list(filter(lambda x: x.get('songId') is not None and x.get('url', '') != '', result))
if len(result) > 0:
item = result[0]
albumName = item.get('albumName')

View File

@ -1,7 +1,7 @@
{
"domain": "ha_cloud_music",
"name": "\u4E91\u97F3\u4E50",
"version": "2023.3.25",
"version": "2023.3.29",
"config_flow": true,
"documentation": "https://github.com/shaonianzhentan/ha_cloud_music",
"requirements": [],