mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 02:16:39 +02:00
Add support for OpenSubsonic enhanced lyrics (#2208)
This commit is contained in:
@@ -30,15 +30,30 @@ const convertFurigana = (text: string): Promise<string> => {
|
||||
return ipcRenderer.invoke('lyric-convert-furigana', text);
|
||||
};
|
||||
|
||||
const convertFuriganaFragment = (text: string): Promise<string> => {
|
||||
return ipcRenderer.invoke('lyric-convert-furigana-fragment', text);
|
||||
};
|
||||
|
||||
const parseLyricsTextTokens = (text: string) => {
|
||||
return ipcRenderer.invoke('lyric-parse-text-tokens', text);
|
||||
};
|
||||
|
||||
const convertRomaji = (text: string): Promise<string> => {
|
||||
return ipcRenderer.invoke('lyric-convert-romaji', text);
|
||||
};
|
||||
|
||||
const convertRomajiTokens = (text: string) => {
|
||||
return ipcRenderer.invoke('lyric-convert-romaji-tokens', text);
|
||||
};
|
||||
|
||||
export const lyrics = {
|
||||
convertFurigana,
|
||||
convertFuriganaFragment,
|
||||
convertRomaji,
|
||||
convertRomajiTokens,
|
||||
getRemoteLyricsByRemoteId,
|
||||
getRemoteLyricsBySong,
|
||||
parseLyricsTextTokens,
|
||||
searchRemoteLyrics,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user