mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
chore: use query as key name for endless playback radio search
This commit is contained in:
parent
9dfd49ca04
commit
5ad5d16683
@ -95,13 +95,14 @@ class TrackOptions extends HookConsumerWidget {
|
|||||||
final playback = ref.read(ProxyPlaylistNotifier.notifier);
|
final playback = ref.read(ProxyPlaylistNotifier.notifier);
|
||||||
final playlist = ref.read(ProxyPlaylistNotifier.provider);
|
final playlist = ref.read(ProxyPlaylistNotifier.provider);
|
||||||
final spotify = ref.read(spotifyProvider);
|
final spotify = ref.read(spotifyProvider);
|
||||||
|
final query = "${track.name} Radio";
|
||||||
final pages = await QueryClient.of(context)
|
final pages = await QueryClient.of(context)
|
||||||
.fetchInfiniteQueryJob<List<Page>, dynamic, int, SearchParams>(
|
.fetchInfiniteQueryJob<List<Page>, dynamic, int, SearchParams>(
|
||||||
job: SearchQueries.queryJob(SearchType.playlist.name),
|
job: SearchQueries.queryJob(query),
|
||||||
args: (
|
args: (
|
||||||
spotify: spotify,
|
spotify: spotify,
|
||||||
searchType: SearchType.playlist,
|
searchType: SearchType.playlist,
|
||||||
query: "${track.name} Radio"
|
query: query,
|
||||||
),
|
),
|
||||||
) ??
|
) ??
|
||||||
[];
|
[];
|
||||||
|
@ -31,13 +31,14 @@ void useEndlessPlayback(WidgetRef ref) {
|
|||||||
|
|
||||||
final track = playlist.tracks.last;
|
final track = playlist.tracks.last;
|
||||||
|
|
||||||
|
final query = "${track.name} Radio";
|
||||||
final pages = await queryClient.fetchInfiniteQueryJob<List<Page>,
|
final pages = await queryClient.fetchInfiniteQueryJob<List<Page>,
|
||||||
dynamic, int, SearchParams>(
|
dynamic, int, SearchParams>(
|
||||||
job: SearchQueries.queryJob(SearchType.playlist.name),
|
job: SearchQueries.queryJob(query),
|
||||||
args: (
|
args: (
|
||||||
spotify: spotify,
|
spotify: spotify,
|
||||||
searchType: SearchType.playlist,
|
searchType: SearchType.playlist,
|
||||||
query: "${track.name} Radio"
|
query: query
|
||||||
),
|
),
|
||||||
) ??
|
) ??
|
||||||
[];
|
[];
|
||||||
|
Loading…
Reference in New Issue
Block a user