mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
fix: start radio not working #1629
This commit is contained in:
parent
b501078c43
commit
9294858fb6
@ -105,7 +105,9 @@ class TrackOptions extends HookConsumerWidget {
|
|||||||
final pages =
|
final pages =
|
||||||
await spotify.search.get(query, types: [SearchType.playlist]).first();
|
await spotify.search.get(query, types: [SearchType.playlist]).first();
|
||||||
|
|
||||||
final radios = pages.map((e) => e.items).toList().cast<PlaylistSimple>();
|
final radios = pages
|
||||||
|
.expand((e) => e.items?.cast<PlaylistSimple>().toList() ?? [])
|
||||||
|
.toList();
|
||||||
|
|
||||||
final artists = track.artists!.map((e) => e.name);
|
final artists = track.artists!.map((e) => e.name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user