mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-08 16:24:36 +00:00
fix: ignore episodes in tracks
This commit is contained in:
parent
75b05f3dc8
commit
2f6fa7add1
@ -62,7 +62,7 @@ class BlackListNotifier
|
||||
|
||||
final containsTrackArtists = track.artists?.any(
|
||||
(artist) => state.contains(
|
||||
BlacklistedElement.artist(artist.id!, artist.name!),
|
||||
BlacklistedElement.artist(artist.id!, artist.name ?? "Spotify"),
|
||||
),
|
||||
) ??
|
||||
false;
|
||||
|
||||
@ -36,7 +36,9 @@ class PlaylistTracksNotifier extends AutoDisposeFamilyPaginatedAsyncNotifier<
|
||||
|
||||
/// Filter out tracks with null id because some personal playlists
|
||||
/// may contain local tracks that are not available in the Spotify catalog
|
||||
return tracks.items?.where((track) => track.id != null).toList() ??
|
||||
return tracks.items
|
||||
?.where((track) => track.id != null && track.type == "track")
|
||||
.toList() ??
|
||||
<Track>[];
|
||||
}
|
||||
|
||||
|
||||
@ -61,6 +61,9 @@ abstract class TypeConversionUtils {
|
||||
.entries
|
||||
.map(
|
||||
(artist) => Builder(builder: (context) {
|
||||
if (artist.value.name == null) {
|
||||
return Text("Spotify", style: textStyle);
|
||||
}
|
||||
return AnchorButton(
|
||||
(artist.key != artists.length - 1)
|
||||
? "${artist.value.name}, "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user