refactor(player): remove unused player path args

This commit is contained in:
4gray committed 2025-11-08 23:02:15 +01:00
1 parent fbed100fb0
commit 588664c3aa
6 files changed
-16

No files matched your search

@@ -18,7 +18,6 @@ contextBridge.exposeInMainWorld('electron', {
ipcRenderer.invoke('set-user-agent', userAgent, referer),
openInMpv: (
url: string,
path: string,
title: string,
userAgent: string,
referer?: string,
@@ -27,7 +26,6 @@ contextBridge.exposeInMainWorld('electron', {
ipcRenderer.invoke(
'OPEN_MPV_PLAYER',
url,
path,
title,
userAgent,
referer,
@@ -35,7 +33,6 @@ contextBridge.exposeInMainWorld('electron', {
),
openInVlc: (
url: string,
path: string,
title: string,
userAgent: string,
referer?: string,
@@ -44,7 +41,6 @@ contextBridge.exposeInMainWorld('electron', {
ipcRenderer.invoke(
'OPEN_VLC_PLAYER',
url,
path,
title,
userAgent,
referer,
@@ -58,7 +58,6 @@ ipcMain.handle(
async (
event,
url: string,
path: string,
title: string,
userAgent?: string,
referer?: string,
@@ -199,7 +198,6 @@ ipcMain.handle(
(
event,
url: string,
path: string,
title: string,
userAgent?: string,
referer?: string,
@@ -62,7 +62,6 @@ export class ElectronService extends DataService {
try {
return await window.electron.openInMpv(
data.url,
data.mpvPlayerPath || '',
data.title ?? '',
data['user-agent'] ?? undefined,
data.referer ?? undefined,
@@ -81,7 +80,6 @@ export class ElectronService extends DataService {
try {
return await window.electron.openInVlc(
data.url,
data.vlcPlayerPath || '',
data.title ?? '',
data['user-agent'] ?? undefined,
data.referer ?? undefined,
@@ -39,7 +39,6 @@ export class PlayerService {
}
this.dataService.sendIpcEvent(OPEN_MPV_PLAYER, {
url: streamUrl,
mpvPlayerPath: this.settingsStore.mpvPlayerPath(),
title,
thumbnail,
'user-agent': userAgent,
@@ -52,7 +51,6 @@ export class PlayerService {
}
this.dataService.sendIpcEvent(OPEN_VLC_PLAYER, {
url: streamUrl,
vlcPlayerPath: this.settingsStore.vlcPlayerPath(),
title,
thumbnail,
'user-agent': userAgent,
Vendored
-2
View File
@@ -32,7 +32,6 @@ declare global {
setUserAgent: (userAgent: string, referer?: string) => void;
openInMpv: (
url: string,
path: string,
title: string,
userAgent: string,
referer?: string,
@@ -40,7 +39,6 @@ declare global {
) => void;
openInVlc: (
url: string,
path: string,
title: string,
userAgent: string,
referer?: string,
-4
View File
@@ -100,7 +100,6 @@ export class PlaylistEffects {
url:
activeChannel?.url +
(activeChannel?.epgParams ?? ''),
mpvPlayerPath: settings?.mpvPlayerPath,
});
else if (
settings &&
@@ -111,7 +110,6 @@ export class PlaylistEffects {
url:
activeChannel?.url +
(activeChannel?.epgParams ?? ''),
vlcPlayerPath: settings?.vlcPlayerPath,
});
}
);
@@ -151,7 +149,6 @@ export class PlaylistEffects {
) {
this.dataService.sendIpcEvent(OPEN_MPV_PLAYER, {
url: channel.url,
mpvPlayerPath: settings?.mpvPlayerPath,
referer: channel.http.referrer,
userAgent: channel.http['user-agent'],
origin: channel.http.origin,
@@ -164,7 +161,6 @@ export class PlaylistEffects {
)
this.dataService.sendIpcEvent(OPEN_VLC_PLAYER, {
url: channel.url,
vlcPlayerPath: settings?.vlcPlayerPath,
});
}
);