Skip to content

Commit 050ef06

Browse files
committed
fix(Tidal): Construct valid IDs/URLs for video recordings
1 parent 55e9543 commit 050ef06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

providers/Tidal/__snapshots__/mod.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ snapshot[`Tidal provider > release lookup > lyric video (v2 API) 1`] = `
650650
{
651651
id: "358461354",
652652
provider: "tidal",
653-
type: "track",
653+
type: "video",
654654
},
655655
],
656656
},

providers/Tidal/v2/lookup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export class TidalV2ReleaseLookup extends ReleaseApiLookup<TidalProvider, Single
261261
artists: this.getTrackArtists(track, artistMap),
262262
type: track.type === 'videos' ? 'video' : 'audio',
263263
recording: {
264-
externalIds: this.provider.makeExternalIds({ type: 'track', id: track.id }),
264+
externalIds: this.provider.makeExternalIds({ type: track.type === 'videos' ? 'video' : 'track', id: track.id }),
265265
},
266266
};
267267
}

0 commit comments

Comments
 (0)