Various lyrics improvements

- Update wording on provider fetcher
- Invalidate query on reset instead of resetQuery
This commit is contained in:
jeffvli 2023-08-07 21:59:55 -07:00
parent 59a851f8c8
commit 8686a7c592
4 changed files with 15 additions and 14 deletions

View file

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