mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00

* feat: implement new SourcedTrack for youtube and piped * refactor: replace old spotube track with sourced track * feat: add jiosaavn as audio source * fix: download not working other than jiosaavn * Merge branch 'dev' into feat-jiosaavn
12 lines
369 B
Dart
12 lines
369 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:piped_client/piped_client.dart';
|
|
import 'package:spotube/services/sourced_track/sources/piped.dart';
|
|
|
|
final pipedInstancesFutureProvider = FutureProvider<List<PipedInstance>>(
|
|
(ref) async {
|
|
final pipedClient = ref.watch(pipedProvider);
|
|
|
|
return await pipedClient.instanceList();
|
|
},
|
|
);
|