Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/externalPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the condition?

Suggested change
} else {
} else if (hasValidVideoId) {

args.push(`${cmdArgs.videoUrl}https://www.youtube.com/watch?v=${payload.videoId}`)
}
} else {
Expand Down
Loading