mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
fix(electron): make macos player executable mapping explicit
This commit is contained in:
1 parent
d6d9f42a7e
commit
8b46bfab87
1 file changed
+6
-1
@@ -93,8 +93,13 @@ function normalizePlayerPathForStore(value: string | null | undefined): string {
|
||||
return normalizeCustomPlayerPath(value) ?? '';
|
||||
}
|
||||
|
||||
const macOSAppBundleExecutableNames: Record<ExternalPlayerName, string> = {
|
||||
mpv: 'mpv',
|
||||
vlc: 'VLC',
|
||||
};
|
||||
|
||||
function getMacOSAppBundleExecutableName(player: ExternalPlayerName): string {
|
||||
return player === 'mpv' ? 'mpv' : 'VLC';
|
||||
return macOSAppBundleExecutableNames[player];
|
||||
}
|
||||
|
||||
function removeTrailingPathSeparators(value: string): string {
|
||||
|
||||
Reference in new issue
Block a user