mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-03 14:20:50 +08:00
✨ feat: 替换 netease-cloud-music-api-alger 为官方 NeteaseCloudMusicApi
- 依赖从 netease-cloud-music-api-alger@4.26 升级为 NeteaseCloudMusicApi@4.29 - 新增 fmTrash API 支持私人FM不喜欢功能 - getPersonalFM 移除重复 timestamp(拦截器已自动添加)
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
"husky": "^9.1.7",
|
||||
"jsencrypt": "^3.5.4",
|
||||
"music-metadata": "^11.10.3",
|
||||
"netease-cloud-music-api-alger": "^4.26.1",
|
||||
"NeteaseCloudMusicApi": "^4.29.0",
|
||||
"node-fetch": "^2.7.0",
|
||||
"node-id3": "^0.2.9",
|
||||
"node-machine-id": "^1.1.12",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ipcMain } from 'electron';
|
||||
import Store from 'electron-store';
|
||||
import fs from 'fs';
|
||||
import server from 'netease-cloud-music-api-alger/server';
|
||||
import server from 'NeteaseCloudMusicApi/server';
|
||||
import os from 'os';
|
||||
import path from 'path';
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ export const getPersonalizedPlaylist = (limit: number = 30) => {
|
||||
return request.get<any>('/personalized', { params: { limit } });
|
||||
};
|
||||
|
||||
// 获取私人漫游
|
||||
// 获取私人漫游(request 拦截器已自动添加 timestamp)
|
||||
export const getPersonalFM = () => {
|
||||
return request.get<any>('/personal_fm');
|
||||
};
|
||||
|
||||
@@ -8,6 +8,13 @@ import { MusicParser, type MusicParseResult } from './musicParser';
|
||||
|
||||
const { addData, getData, deleteData } = musicDB;
|
||||
|
||||
// 将 FM 歌曲移至垃圾桶(不喜欢)
|
||||
export const fmTrash = (id: number) => {
|
||||
return request.post('/fm_trash', null, {
|
||||
params: { id, timestamp: Date.now() }
|
||||
});
|
||||
};
|
||||
|
||||
// 获取音乐音质详情
|
||||
export const getMusicQualityDetail = (id: number) => {
|
||||
return request.get('/song/music/detail', { params: { id } });
|
||||
|
||||
Reference in New Issue
Block a user