Skip to content

Commit

Permalink
fix: alternative sources not showing up for SongLink matched results
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 6, 2024
1 parent 73c5b30 commit 37d002d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/services/sourced_track/sources/youtube.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ class YoutubeSourcedTrack extends SourcedTrack {
final links = await SongLinkService.links(track.id!);
final ytLink = links.firstWhereOrNull((link) => link.platform == "youtube");

if (ytLink?.url != null) {
if (ytLink?.url != null
// allows to fetch siblings more results for already sourced track
&&
track is! SourcedTrack) {
try {
return [
await toSiblingType(
Expand Down

0 comments on commit 37d002d

Please sign in to comment.