解决第三方播放链接为空的问题
This commit is contained in:
parent
54e0ddeb0e
commit
c3fe6d17d6
|
@ -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')
|
||||
|
|
|
@ -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": [],
|
||||
|
|
Loading…
Reference in New Issue