mirror of
https://github.com/Andre-Bzk/twitch4steamdeck.git
synced 2026-11-15 15:43:08 +01:00
Phase 3 abgeschlossen
Fix: Streamlink auth header entfernt, mpv-Pfad explizit aufgelöst Livestream wird kann jetzt abgespielt werden
This commit is contained in:
+8
-1
@@ -2,6 +2,7 @@ import { app, BrowserWindow, shell } from 'electron'
|
||||
import { join } from 'node:path'
|
||||
import { AuthService } from './auth/authService'
|
||||
import { HelixClient } from './twitch/helixClient'
|
||||
import { PlaybackService } from './playback/playbackService'
|
||||
import { registerIpcHandlers } from './ipc/handlers'
|
||||
|
||||
const isDev = !app.isPackaged
|
||||
@@ -44,7 +45,13 @@ app.whenReady().then(async () => {
|
||||
const auth = new AuthService(clientId)
|
||||
await auth.init()
|
||||
const helix = new HelixClient(clientId, () => auth.getValidAccessToken())
|
||||
registerIpcHandlers(auth, helix)
|
||||
const playback = new PlaybackService()
|
||||
|
||||
registerIpcHandlers(auth, helix, playback)
|
||||
|
||||
app.on('before-quit', () => {
|
||||
playback.stopAll()
|
||||
})
|
||||
|
||||
if (!clientId) {
|
||||
console.warn(
|
||||
|
||||
Reference in New Issue
Block a user