Fix kuwo album, playlist & artist function (#105)

This commit is contained in:
Hans362
2021-07-19 19:49:00 +08:00
committed by GitHub
parent 92148453fc
commit 2e0a179990
2 changed files with 10 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
A powerful music API framework to accelerate your development
+ **Elegant** - Easy to use, a standardized format for all music platforms.
+ **Lightweight** - A single-file library that's less than 51KB.
+ **Powerful** - Support various music platforms, including Tencent, NetEase, Xiami, KuGou, Baidu and more.
+ **Powerful** - Support various music platforms, including Tencent, NetEase, Xiami, KuGou, Baidu, Kuwo and more.
+ **Free** - Under MIT license, need I say more?
## Requirement

View File

@@ -424,9 +424,11 @@ class Meting
case 'kuwo':
$api = array(
'method' => 'GET',
'url' => 'http://www.kuwo.cn/api/www/playlist/playListInfo',
'url' => 'http://www.kuwo.cn/api/www/album/albumInfo',
'body' => array(
'pid' => $id,
'albumId' => $id,
'pn' => 1,
'rn' => 1000,
'httpsStatus' => 1,
),
'format' => 'data.musicList',
@@ -526,6 +528,8 @@ class Meting
'url' => 'http://www.kuwo.cn/api/www/artist/artistMusic',
'body' => array(
'artistid' => $id,
'pn' => 1,
'rn' => $limit,
'httpsStatus' => 1,
),
'format' => 'data.list',
@@ -620,6 +624,8 @@ class Meting
'url' => 'http://www.kuwo.cn/api/www/playlist/playListInfo',
'body' => array(
'pid' => $id,
'pn' => 1,
'rn' => 1000,
'httpsStatus' => 1,
),
'format' => 'data.musicList',
@@ -1521,7 +1527,7 @@ class Meting
$result = array(
'id' => $data['rid'],
'name' => $data['name'],
'artist' => explode(',', $data['artist']),
'artist' => explode('&', $data['artist']),
'album' => $data['album'],
'pic_id' => $data['rid'],
'url_id' => $data['rid'],