Phase 5.5 abgeschlossen

- Durchsuchen Menu
- Top Live Streams
- Top Kategorie
- Anzeige Zuschaueranzahl getTopGames(), technisch bedingt mit einer gewissen unschärfe zu den tatsächliche Zuschauer der Kategorie
This commit is contained in:
Andre
2026-04-08 21:05:34 +02:00
parent 2cd5e2fb0c
commit 1f40d25771
13 changed files with 869 additions and 19 deletions
+15 -1
View File
@@ -10,6 +10,8 @@ const IPC = {
twitchGetFollowed: 'twitch:get-followed',
twitchGetVideos: 'twitch:get-videos',
twitchGetTopGames: 'twitch:get-top-games',
twitchGetTopStreams: 'twitch:get-top-streams',
historyGetProgress: 'history:get-progress',
playbackStartLive: 'playback:start-live',
@@ -40,6 +42,7 @@ export interface FollowedChannelInfo {
profileImageUrl: string
isLive: boolean
streamTitle?: string
gameId?: string
gameName?: string
viewerCount?: number
thumbnailUrl?: string
@@ -52,6 +55,13 @@ export interface PlaybackEvent {
message?: string
}
export interface GameInfo {
id: string
name: string
boxArtUrl: string
viewerCount?: number
}
export interface VodInfo {
id: string
title: string
@@ -85,7 +95,11 @@ const api = {
getFollowed: (): Promise<FollowedChannelInfo[]> =>
ipcRenderer.invoke(IPC.twitchGetFollowed),
getVideos: (broadcasterId: string): Promise<VodInfo[]> =>
ipcRenderer.invoke(IPC.twitchGetVideos, broadcasterId)
ipcRenderer.invoke(IPC.twitchGetVideos, broadcasterId),
getTopGames: (cursor?: string): Promise<{ games: GameInfo[]; cursor?: string }> =>
ipcRenderer.invoke(IPC.twitchGetTopGames, cursor),
getTopStreams: (gameId?: string): Promise<FollowedChannelInfo[]> =>
ipcRenderer.invoke(IPC.twitchGetTopStreams, gameId)
},
history: {
getProgress: (vodIds: string[]): Promise<Record<string, VodProgress>> =>