[M] Move type

This commit is contained in:
2025-11-17 22:21:57 +08:00
parent b18cb888b4
commit 79182ddf7c
2 changed files with 10 additions and 9 deletions
+1 -9
View File
@@ -2,6 +2,7 @@ import * as ne from '@neteasecloudmusicapienhanced/api';
import * as fs from 'fs/promises';
import * as path from 'path';
import { aiParseLyrics } from './lyricsParse';
import type { NeteaseSongBrief } from './types';
// Filesystem structure:
// $data/playlists/{playlistId}/detail.json
@@ -63,15 +64,6 @@ export const getSongMeta = cached(
return detail.body.songs[0]
})
export interface NeteaseSongBrief {
id: number
name: string
album: string
albumId: number
albumPic: string
artists: { id: number, name: string }[]
}
export const parseBrief = (songData: any): NeteaseSongBrief => ({
id: songData.id,
name: songData.name,
+9
View File
@@ -10,6 +10,15 @@ export interface Song {
lyrics: LyricLine[]
}
export interface NeteaseSongBrief {
id: number
name: string
album: string
albumId: number
albumPic: string
artists: { id: number, name: string }[]
}
export interface ProcessedLyricLine {
jp: LyricSegment[]
kanji: string