mirror of
https://github.com/metowolf/Meting.git
synced 2026-09-03 07:27:07 +08:00
Fix kuwo album, playlist & artist function (#105)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user