refactor!: 移除品牌字样,音源改为 sources/ 目录自动加载,脚本不入库
This commit is contained in:
1 parent
f548e5990b
commit
5dd0468860
34 files changed
+256
-232
No files matched your search
@@ -1,8 +1,8 @@
|
||||
// 接口选择层:按 apiSource 配置把请求路由到 v5 聚合源或服务器内置直连接口
|
||||
// 接口选择层:按 apiSource 配置把请求路由到外部聚合音源或服务器内置直连接口
|
||||
import apiSourceInfo from './api-source-info.ts'
|
||||
import { apiSource, userApi } from '../src/renderer/store.js'
|
||||
import internalApi from '../src/apis/index.js'
|
||||
import { createApi as createLxSourceApi } from '../src/apis/lx-source.js'
|
||||
import { createApi as createSourceApi } from '../src/apis/source.js'
|
||||
|
||||
interface SourceApi {
|
||||
getMusicUrl(songInfo: any, type: string): { promise: Promise<any>; cancelHttp(): void }
|
||||
@@ -10,11 +10,11 @@ interface SourceApi {
|
||||
}
|
||||
|
||||
const allApi: Record<string, SourceApi> = {
|
||||
v5_kw: createLxSourceApi('kw'),
|
||||
v5_kg: createLxSourceApi('kg'),
|
||||
v5_tx: createLxSourceApi('tx'),
|
||||
v5_wy: createLxSourceApi('wy'),
|
||||
v5_mg: createLxSourceApi('mg'),
|
||||
source_kw: createSourceApi('kw'),
|
||||
source_kg: createSourceApi('kg'),
|
||||
source_tx: createSourceApi('tx'),
|
||||
source_wy: createSourceApi('wy'),
|
||||
source_mg: createSourceApi('mg'),
|
||||
}
|
||||
|
||||
const apiList: Record<string, SourceApi | undefined> = {}
|
||||
|
||||
Reference in new issue
Block a user