diff --git a/index.php b/index.php new file mode 100644 index 0000000..084f045 --- /dev/null +++ b/index.php @@ -0,0 +1,14 @@ +// If you installed via composer, just use this code to requrie autoloader on the top of your projects. +require 'vendor/autoload.php'; + +// Else use require file +// require 'Meting.php'; + +// Initialize to netease API +$API = new Meting('netease'); + +// Enjoy +$result = $API->format(true)->search('Soldier'); +$data = json_decode($result); +header('Content-type: application/json; charset=UTF-8'); +echo json_encode($data,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); diff --git a/src/Meting.php b/src/Meting.php index f74a0f7..6c17766 100644 --- a/src/Meting.php +++ b/src/Meting.php @@ -2,7 +2,7 @@ /*! * Meting music framework * https://i-meto.com - * Version 1.3.2-dev + * Version 1.3.2 * * Copyright 2017, METO Sheel * Released under the MIT license @@ -894,7 +894,7 @@ class Meting } else{ $url=array( - 'url' => "error", + 'url' => "error",//str_replace('http:', 'https:', $data['data']['song']['listen_file']), 'br' => 0, ); }