Skip to content

Commit

Permalink
Add legacy video id
Browse files Browse the repository at this point in the history
  • Loading branch information
ShacharHarshuv committed Feb 7, 2025
1 parent fb4af11 commit 262a044
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface ProgressionInSongFromYouTubeDescriptor {
key: NoteType;
mode: Mode; // will determinate the cadence to play
cadence?: CadenceType; // if not provided, will be determined by the mode
legacyVideoId?: string; // when we need to change the video id, but we don't want to break past references, we set this to the previous video id
videoId: string;
subId?: number;
name?: string;
Expand Down Expand Up @@ -6171,6 +6172,7 @@ export const chordsInRealSongsDescriptorList: DeepReadonly<
artist: 'Black Kids',
key: 'C',
mode: 1,
legacyVideoId: 'rOV6I4fYnvQ',
videoId: 'IRo_I_WeYfI',
chords: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const soloedChordsInRealSongsDescriptorList =
function getId(
progression: DeepReadonly<ProgressionInSongFromYouTubeDescriptor>,
): string {
return `${progression.videoId} ${progression.section ?? ''} ${progression.subId ?? ''}`;
return `${progression.legacyVideoId ?? progression.videoId} ${progression.section ?? ''} ${progression.subId ?? ''}`;
}

const duplicates = _(chordsInRealSongsDescriptorList)
Expand Down

0 comments on commit 262a044

Please sign in to comment.