Skip to content

Commit

Permalink
edit_playlist: add dedupe option skip
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed Sep 16, 2023
1 parent a07d9e0 commit 34a93f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mixins/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export interface EditPlaylistOptions extends AbortOptions {
add_videos?: string[];
remove_videos?: { videoId: string; setVideoId?: string }[];
add_source_playlists?: string[];
dedupe?: "check" | "drop_duplicate";
dedupe?: "check" | "drop_duplicate" | "skip";
}

export type EditPlaylistStatus = "STATUS_SUCCEEDED" | "STATUS_FAILED";
Expand Down Expand Up @@ -402,6 +402,8 @@ export async function edit_playlist(
? "DEDUPE_OPTION_CHECK"
: dedupe === "drop_duplicate"
? "DEDUPE_OPTION_DROP_DUPLICATE"
: dedupe === "skip"
? "DEDUPE_OPTION_SKIP"
: null,
});
});
Expand Down

0 comments on commit 34a93f9

Please sign in to comment.