From d54730ff4addac976f36705409cb62bd40c5e64a Mon Sep 17 00:00:00 2001 From: METO Date: Thu, 1 Jun 2017 13:09:21 +0800 Subject: [PATCH] =?UTF-8?q?[1.1.1]=20=E6=9B=B4=E6=96=B0=20Meting=20?= =?UTF-8?q?=E5=BA=93=E7=89=88=E6=9C=AC=EF=BC=88=E4=BF=AE=E5=A4=8D=E7=BD=91?= =?UTF-8?q?=E6=98=93=E4=BA=91=E3=80=81=E9=85=B7=E7=8B=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugin.php | 4 ++-- README.md | 3 +-- include/Meting.php | 18 ++++++++++-------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Plugin.php b/Plugin.php index d2426d1..8be4d06 100644 --- a/Plugin.php +++ b/Plugin.php @@ -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 { diff --git a/README.md b/README.md index 9fb8ca5..e6bd7cd 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -![](http://ww2.sinaimg.cn/large/a15b4afegw1fbg1l7wn09j20fw05gq34) +![](https://wx2.sinaimg.cn/large/a15b4afegw1fbg1l7wn09j20fw05gq34) # Meting for Typecho 在 Typecho 中使用 APlayer 播放在线音乐吧~ [发布页面](https://i-meto.com/meting-typecho/) -[在线演示](https://demo.i-meto.com) ## 介绍 1. 支持国内五大音乐平台(网易云、QQ、虾米、百度、酷狗)的单曲/专辑/歌单播放 diff --git a/include/Meting.php b/include/Meting.php index 4a52ac6..1a0687b 100644 --- a/include/Meting.php +++ b/include/Meting.php @@ -2,7 +2,7 @@ /*! * Meting music framework * https://i-meto.com - * Version 1.3.2.1 + * Version 1.3.4 * * Copyright 2017, METO Sheel * 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, ); }