From 340407095e042bb67a9ce3fd4dfa0625e8082849 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 11 Apr 2026 19:49:03 +0200 Subject: [PATCH] Fix opening playlists in external players not working when ignore default args is enabled --- src/main/externalPlayer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/externalPlayer.js b/src/main/externalPlayer.js index 783e2460c3e0a..f2d4e746b084b 100644 --- a/src/main/externalPlayer.js +++ b/src/main/externalPlayer.js @@ -90,7 +90,13 @@ export async function handleOpenInExternalPlayer(event, payload) { } if (ignoreDefaultArgs) { - if (hasValidVideoId) { + if (hasValidPlaylistId && !hasValidVideoId) { + if (typeof cmdArgs.playlistUrl === 'string') { + args.push(`${cmdArgs.playlistUrl}https://youtube.com/playlist?list=${payload.playlistId}`) + } else if (!ignoreWarnings) { + unsupportedActions.push(UnsupportedPlayerActions.OPENING_PLAYLISTS) + } + } else { args.push(`${cmdArgs.videoUrl}https://www.youtube.com/watch?v=${payload.videoId}`) } } else {