mirror of
https://github.com/MoePlayer/APlayer-Typecho.git
synced 2025-02-19 20:50:23 +08:00
[1.1.1] 更新 Meting 库版本(修复网易云、酷狗)
This commit is contained in:
parent
dc4ab0af25
commit
d54730ff4a
@ -6,13 +6,13 @@ if(!defined('__TYPECHO_ROOT_DIR__'))exit;
|
||||
*
|
||||
* @package Meting
|
||||
* @author METO
|
||||
* @version 1.1.0
|
||||
* @version 1.1.1
|
||||
* @dependence 14.10.10-*
|
||||
* @link https://github.com/metowolf/Meting-Typecho-Plugin
|
||||
*
|
||||
*/
|
||||
|
||||
define('METING_VERSION','1.1.0');
|
||||
define('METING_VERSION','1.1.1');
|
||||
|
||||
class Meting_Plugin extends Typecho_Widget implements Typecho_Plugin_Interface
|
||||
{
|
||||
|
@ -1,9 +1,8 @@
|
||||

|
||||

|
||||
|
||||
# Meting for Typecho
|
||||
在 Typecho 中使用 APlayer 播放在线音乐吧~
|
||||
[发布页面](https://i-meto.com/meting-typecho/)
|
||||
[在线演示](https://demo.i-meto.com)
|
||||
|
||||
## 介绍
|
||||
1. 支持国内五大音乐平台(网易云、QQ、虾米、百度、酷狗)的单曲/专辑/歌单播放
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*!
|
||||
* Meting music framework
|
||||
* https://i-meto.com
|
||||
* Version 1.3.2.1
|
||||
* Version 1.3.4
|
||||
*
|
||||
* Copyright 2017, METO Sheel <i@i-meto.com>
|
||||
* Released under the MIT license
|
||||
@ -173,15 +173,17 @@ class Meting
|
||||
case 'kugou':
|
||||
$API=array(
|
||||
'method' => 'GET',
|
||||
'url' => 'http://mobilecdn.kugou.com/api/v3/search/song',
|
||||
'url' => 'http://ioscdn.kugou.com/api/v3/search/song',
|
||||
'body' => array(
|
||||
'iscorrect' => 1,
|
||||
'pagesize' => $limit,
|
||||
'plat' => 20,
|
||||
'sver' => 3,
|
||||
'showtype' => 14,
|
||||
'plat' => 2,
|
||||
'tag' => 1,
|
||||
'sver' => 5,
|
||||
'showtype' => 10,
|
||||
'page' => $page,
|
||||
'keyword' => $keyword,
|
||||
'version' => 8550
|
||||
),
|
||||
'format' => 'data#info',
|
||||
);
|
||||
@ -337,7 +339,7 @@ class Meting
|
||||
'plat' => 2,
|
||||
'page' => 1,
|
||||
'pagesize' => -1,
|
||||
'version' => 8400,
|
||||
'version' => 8550,
|
||||
),
|
||||
'format' => 'data#info',
|
||||
);
|
||||
@ -817,13 +819,13 @@ class Meting
|
||||
$data=json_decode($result, 1);
|
||||
if($data['data'][0]['uf'] != null) {
|
||||
$url=array(
|
||||
'url' => str_replace('http:', 'https:', $data['data'][0]['uf']['url']),
|
||||
'url' => str_replace('http://m8', 'https://m8', $data['data'][0]['uf']['url']),
|
||||
'br' =>$data['data'][0]['uf']['br']/1000,
|
||||
);
|
||||
}
|
||||
else{
|
||||
$url=array(
|
||||
'url' => str_replace('http:', 'https:', $data['data'][0]['url']),
|
||||
'url' => str_replace('http://m8', 'https://m8', $data['data'][0]['url']),
|
||||
'br' => $data['data'][0]['br']/1000,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user