Skip to content

Commit

Permalink
Only show artist top songs with at least one play (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 authored Nov 7, 2024
1 parent 1ac9149 commit a57dc4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/components/ArtistScreen/artist_screen_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ class _ArtistScreenContentState extends State<ArtistScreenContent> {
if (!isOffline &&
FinampSettingsHelper.finampSettings.showArtistsTopSongs)
SongsSliverList(
childrenForList: songs.take(5).toList(),
childrenForList: songs
.takeWhile((s) => (s.userData?.playCount ?? 0) > 0)
.take(5)
.toList(),
childrenForQueue: Future.value(songs),
showPlayCount: true,
isOnArtistScreen: true,
Expand All @@ -182,4 +185,4 @@ class _ArtistScreenContentState extends State<ArtistScreenContent> {
]);
});
}
}
}

0 comments on commit a57dc4f

Please sign in to comment.