Improve lyrics match with scored searches

This commit is contained in:
jeffvli 2023-06-09 14:45:29 -07:00 committed by Jeff
parent 77703b904f
commit cbc08d6f03
8 changed files with 272 additions and 102 deletions

View file

@ -1,3 +1,4 @@
import { ipcMain } from 'electron';
import {
InternetProviderLyricResponse,
InternetProviderLyricSearchResponse,
@ -5,19 +6,18 @@ import {
QueueSong,
LyricGetQuery,
LyricSource,
} from '/@/renderer/api/types';
} from '../../../../renderer/api/types';
import { store } from '../settings/index';
import {
query as queryGenius,
getSearchResults as searchGenius,
getLyricsByURL as getGenius,
getLyricsBySongId as getGenius,
} from './genius';
import {
query as queryNetease,
getSearchResults as searchNetease,
getLyricsBySongId as getNetease,
} from './netease';
import { ipcMain } from 'electron';
import { store } from '../settings/index';
type SongFetcher = (params: LyricSearchQuery) => Promise<InternetProviderLyricResponse | null>;
type SearchFetcher = (