fix: ext format (add description/entry); fix getUrl signature to (source, songInfo, type)

This commit is contained in:
TRAE Bot
2026-07-05 16:02:32 +00:00
parent da7ad5f8a3
commit 2bc804187a
6 changed files with 8 additions and 8 deletions

View File

@@ -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('');

View File

@@ -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 || '';

View File

@@ -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 || '';

View File

@@ -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: '聆澜播放接口密钥' },

View File

@@ -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 || '';

View File

@@ -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 || '';