Skip to content

Commit

Permalink
fix(API): update getSongManifest to include specific YoutubeApiClients
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed Jan 19, 2025
1 parent 6e5f42c commit c223d12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/API/musify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,14 @@ Future<Map?> getPlaylistInfoForWidget(

Future<AudioOnlyStreamInfo> getSongManifest(String songId) async {
try {
final manifest = await _yt.videos.streamsClient.getManifest(songId);
final manifest = await _yt.videos.streams.getManifest(
songId,
ytClients: [
YoutubeApiClient.tv,
YoutubeApiClient.androidVr,
YoutubeApiClient.safari,
],
);
final audioStream = manifest.audioOnly.withHighestBitrate();
return audioStream;
} catch (e, stackTrace) {
Expand Down

0 comments on commit c223d12

Please sign in to comment.