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
19 lines
454 B
Dart
19 lines
454 B
Dart
import 'package:spotube/collections/env.dart';
|
|
import 'package:spotube/models/source_match.dart';
|
|
import 'package:supabase/supabase.dart';
|
|
|
|
class SupabaseService {
|
|
static final api = SupabaseClient(
|
|
Env.supabaseUrl ?? "",
|
|
Env.supabaseAnonKey ?? "",
|
|
);
|
|
|
|
Future<void> insertTrack(SourceMatch track) async {
|
|
return null;
|
|
// TODO: Fix this
|
|
await api.from("tracks").insert(track.toJson());
|
|
}
|
|
}
|
|
|
|
final supabase = SupabaseService();
|