fix: ext format (add description/entry); fix getUrl signature to (source, songInfo, type)
This commit is contained in:
@@ -138,7 +138,7 @@ function search(str, page, limit, retryNum) {
|
||||
}
|
||||
|
||||
// ===== 播放链接 =====
|
||||
function getUrl(songInfo, type) {
|
||||
function getUrl(source, songInfo, type) {
|
||||
var q = (type === 'standard' ? '128k' : type === 'exhigh' ? '320k' : type === 'lossless' || type === 'hires' || type === 'jymaster' ? 'flac' : type) || '128k';
|
||||
var songId = songInfo.id || '';
|
||||
if (!songId) return Promise.resolve('');
|
||||
|
||||
@@ -175,7 +175,7 @@ function search(str, page, limit, retryNum) {
|
||||
}
|
||||
|
||||
// ===== 播放链接 =====
|
||||
function getUrl(songInfo, type) {
|
||||
function getUrl(source, songInfo, type) {
|
||||
var q = (type === 'standard' ? '128k' : type === 'exhigh' ? '320k' : type === 'lossless' || type === 'hires' || type === 'jymaster' ? 'flac' : type) || '128k';
|
||||
var songId = songInfo.id || '';
|
||||
var ceruKey = CERU_KEY || '';
|
||||
|
||||
@@ -119,7 +119,7 @@ function search(str, page, limit, retryNum) {
|
||||
}
|
||||
|
||||
// ===== 播放链接 =====
|
||||
function getUrl(songInfo, type) {
|
||||
function getUrl(source, songInfo, type) {
|
||||
var q = (type === 'standard' ? '128k' : type === 'exhigh' ? '320k' : type === 'lossless' || type === 'hires' || type === 'jymaster' ? 'flac' : type) || '128k';
|
||||
var songId = songInfo.id || '';
|
||||
var ceruKey = CERU_KEY || '';
|
||||
|
||||
@@ -197,7 +197,7 @@ function search(str, page, limit, retryNum) {
|
||||
}
|
||||
|
||||
// ===== 播放链接 =====
|
||||
function getUrl(songInfo, type) {
|
||||
function getUrl(source, songInfo, type) {
|
||||
var q = (type === 'standard' ? '128k' : type === 'exhigh' ? '320k' : type === 'lossless' || type === 'hires' || type === 'jymaster' ? 'flac' : type) || '128k';
|
||||
var songId = songInfo.id || '';
|
||||
var ceruKey = CERU_KEY || '';
|
||||
@@ -615,8 +615,8 @@ var pluginInfo = {
|
||||
description: '网易云音乐音源,基于 CeruMusic musicSdk 搜索 + Ceru 播放接口'
|
||||
},
|
||||
ext: [
|
||||
{ type: 'homePage', url: 'https://music.163.com/', name: '网易云音乐主页' },
|
||||
{ type: 'share', url: 'https://music.163.com/song/media/outer/url?id={id}.mp3', name: '外链分享' }
|
||||
{ type: 'homePage', url: 'https://music.163.com/', name: '网易云音乐主页', description: '网易云音乐主页', entry: '' },
|
||||
{ type: 'share', url: 'https://music.163.com/song/media/outer/url?id={id}.mp3', name: '外链分享', description: '外链分享', entry: '' }
|
||||
],
|
||||
env: [
|
||||
{ key: 'ceru_key', name: 'Ceru API Key', description: '聆澜播放接口密钥' },
|
||||
|
||||
@@ -109,7 +109,7 @@ function search(str, page, limit, retryNum) {
|
||||
}
|
||||
|
||||
// ===== 播放链接 =====
|
||||
function getUrl(songInfo, type) {
|
||||
function getUrl(source, songInfo, type) {
|
||||
var q = (type === 'standard' ? '128k' : type === 'exhigh' ? '320k' : type === 'lossless' || type === 'hires' || type === 'jymaster' ? 'flac' : type) || '128k';
|
||||
var songId = songInfo.id || '';
|
||||
var ceruKey = CERU_KEY || '';
|
||||
|
||||
@@ -109,7 +109,7 @@ function search(str, page, limit, retryNum) {
|
||||
}
|
||||
|
||||
// ===== 播放链接 =====
|
||||
function getUrl(songInfo, type) {
|
||||
function getUrl(source, songInfo, type) {
|
||||
var q = (type === 'standard' ? '128k' : type === 'exhigh' ? '320k' : type === 'lossless' || type === 'hires' || type === 'jymaster' ? 'flac' : type) || '128k';
|
||||
var songId = songInfo.id || '';
|
||||
var ceruKey = CERU_KEY || '';
|
||||
|
||||
Reference in New Issue
Block a user