mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
synced-lyrics: make the lyrics search more reliable (#2343)
* fix: comparing multiple artists on a single track * fix: get song info on startup * chore: also split on commas * chore: re-apply .toLowerCase() on the artist names * chore: remove redundant code * chore: attempt at improving the initial videodata * oops * eureka! * stuff
This commit is contained in:
@ -5,3 +5,17 @@ export interface QueueResponse {
|
||||
autoPlaying?: boolean;
|
||||
continuation?: string;
|
||||
}
|
||||
|
||||
export interface WatchNextResponse {
|
||||
playerOverlays: {
|
||||
playerOverlayRenderer: {
|
||||
browserMediaSession: {
|
||||
browserMediaSessionRenderer: {
|
||||
album: {
|
||||
runs: { text: string; }[]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
import { VideoDetails } from './video-details';
|
||||
import { GetPlayerResponse } from './get-player-response';
|
||||
import { PlayerAPIEvents } from './player-api-events';
|
||||
import { WatchNextResponse } from '@/types/youtube-music-desktop-internal';
|
||||
|
||||
export interface YoutubePlayer {
|
||||
getInternalApiInterface: <Parameters extends unknown[], Return>(
|
||||
@ -427,4 +428,6 @@ export interface YoutubePlayer {
|
||||
addEmbedsConversionTrackingParams: <Parameters extends unknown[], Return>(
|
||||
...params: Parameters
|
||||
) => Return;
|
||||
|
||||
getWatchNextResponse(): WatchNextResponse;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user