-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 新增用户自定义 cookie 设置 - 更新 Meting v1.5.8 - 更新 APlayer 1.6.1-beta - 修复 PHP notice 警告 - 修复一些 bug
- Loading branch information
Showing
5 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Meting music framework | ||
* https://i-meto.com | ||
* https://github.com/metowolf/Meting | ||
* Version 1.3.6.1 | ||
* Version 1.3.8 | ||
* | ||
* Copyright 2017, METO Sheel <[email protected]> | ||
* Released under the MIT license | ||
|
@@ -106,7 +106,7 @@ private function pickup($array, $rule) | |
{ | ||
$t=explode('#', $rule); | ||
foreach ($t as $vo) { | ||
if (is_null($array)) { | ||
if (!isset($array[$vo])){ | ||
return array(); | ||
} | ||
$array=$array[$vo]; | ||
|
@@ -140,7 +140,7 @@ public function search($keyword, $page=1, $limit=30) | |
'type' => 1, | ||
'limit' => $limit, | ||
'total' => 'true', | ||
'offset' => $page-1, | ||
'offset' => ($page-1)*$limit, | ||
), | ||
'url' => 'http://music.163.com/api/cloudsearch/pc', | ||
), | ||
|
@@ -151,14 +151,15 @@ public function search($keyword, $page=1, $limit=30) | |
case 'tencent': | ||
$API=array( | ||
'method' => 'GET', | ||
'url' => 'https://c.y.qq.com/soso/fcgi-bin/search_cp', | ||
'url' => 'https://c.y.qq.com/soso/fcgi-bin/client_search_cp', | ||
'body' => array( | ||
'p' => $page, | ||
'n' => $limit, | ||
'w' => $keyword, | ||
'aggr' => 1, | ||
'lossless' => 1, | ||
'cr' => 1, | ||
'platform' => 'yqq', | ||
), | ||
'decode' => 'jsonp2json', | ||
'format' => 'data#song#list', | ||
|
@@ -245,8 +246,9 @@ public function song($id) | |
'method' => 'GET', | ||
'url' => 'https://c.y.qq.com/v8/fcg-bin/fcg_play_single_song.fcg', | ||
'body' => array( | ||
'songmid' => $id, | ||
'format' => 'json', | ||
'songmid' => $id, | ||
'platform' => 'yqq', | ||
'format' => 'json', | ||
), | ||
'decode' => 'tencent_singlesong', | ||
'format' => 'data', | ||
|
@@ -268,7 +270,7 @@ public function song($id) | |
case 'kugou': | ||
$API=array( | ||
'method' => 'POST', | ||
'url' => 'http://m.kugou.com/app/i/getSongInfo.php?', | ||
'url' => 'http://m.kugou.com/app/i/getSongInfo.php', | ||
'body' => array( | ||
"cmd" => "playInfo", | ||
"hash" => $id, | ||
|
@@ -322,6 +324,7 @@ public function album($id) | |
'url' => 'https://c.y.qq.com/v8/fcg-bin/fcg_v8_album_info_cp.fcg', | ||
'body' => array( | ||
'albummid' => $id, | ||
'platform' => 'yqq', | ||
), | ||
'format' => 'data#list', | ||
); | ||
|
@@ -402,6 +405,8 @@ public function artist($id, $limit=50) | |
'singermid' => $id, | ||
'begin' => 0, | ||
'num' => $limit, | ||
'order' => 'listen', | ||
'platform' => 'yqq', | ||
), | ||
'format' => 'data#list', | ||
); | ||
|
@@ -481,9 +486,10 @@ public function playlist($id) | |
'method' => 'GET', | ||
'url' => 'https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg', | ||
'body' => array( | ||
'disstid' => $id, | ||
'utf8' => 1, | ||
'type' => 1, | ||
'disstid' => $id, | ||
'utf8' => 1, | ||
'type' => 1, | ||
'platform' => 'yqq', | ||
), | ||
'decode' => 'jsonp2json', | ||
'format' => 'cdlist#0#songlist', | ||
|
@@ -562,6 +568,7 @@ public function url($id, $br=320) | |
'url' => 'https://c.y.qq.com/v8/fcg-bin/fcg_play_single_song.fcg', | ||
'body' => array( | ||
'songmid' => $id, | ||
'platform' => 'yqq', | ||
'format' => 'json', | ||
), | ||
'decode' => 'tencent_url', | ||
|
@@ -743,8 +750,8 @@ private function curlset() | |
'useragent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36', | ||
), | ||
'tencent'=>array( | ||
'referer' => 'http://y.qq.com/portal/player.html', | ||
'cookie' => 'qqmusic_uin=12345678; qqmusic_key=12345678; qqmusic_fromtag=30; ts_last=y.qq.com/portal/player.html;', | ||
'referer' => 'https://y.qq.com/portal/player.html', | ||
'cookie' => 'pgv_pvi=3832878080; pgv_si=s4066364416; pgv_pvid=3938077488; yplayer_open=1; qqmusic_fromtag=66; ts_last=y.qq.com/portal/player.html; ts_uid=5141451452; player_exist=1; yq_index=1', | ||
'useragent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36', | ||
), | ||
'xiami'=>array( | ||
|
@@ -862,6 +869,7 @@ private function tencent_url($result) | |
|
||
$type=array( | ||
'size_320mp3' => array(320,'M800','mp3'), | ||
'size_192aac' => array(192,'C600','m4a'), | ||
'size_128mp3' => array(128,'M500','mp3'), | ||
'size_96aac' => array(96 ,'C400','m4a'), | ||
'size_48aac' => array(48 ,'C200','m4a'), | ||
|