mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
11 lines
364 B
Dart
11 lines
364 B
Dart
import 'package:piped_client/piped_client.dart';
|
|
import 'package:spotube/models/track.dart';
|
|
import 'package:spotube/services/youtube.dart';
|
|
|
|
extension PipedStreamResponseExtension on PipedStreamResponse {
|
|
static Future<PipedStreamResponse> fromBackendTrack(
|
|
BackendTrack track) async {
|
|
return await PipedSpotube.client.streams(track.youtubeId);
|
|
}
|
|
}
|