Skip to content

Commit

Permalink
Improved code
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed Dec 28, 2023
1 parent e727b5d commit 44c656f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/musify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ Future<String> getAudioUrl(
String cacheKey,
) async {
final manifest = await yt.videos.streamsClient.getManifest(songId);
final audioQuality = selectAudioQuality(manifest.audioOnly);
final audioQuality = selectAudioQuality(manifest.audioOnly.sortByBitrate());
final audioUrl = audioQuality.url.toString();

unawaited(updateRecentlyPlayed(songId));
Expand Down

0 comments on commit 44c656f

Please sign in to comment.