Update lib/services/sourced_track/sources/youtube.dart

This commit is contained in:
Kingkor Roy Tirtho 2024-01-02 22:35:23 +06:00 committed by GitHub
parent 918a532830
commit 582dfcf17a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,8 +87,8 @@ class YoutubeSourcedTrack extends SourcedTrack {
.where((audio) => audio.codec.mimeType == "audio/webm")
.sortByBitrate();
m4a = m4a.isEmpty ? weba : m4a;
weba = weba.isEmpty ? m4a : weba;
m4a = m4a.isEmpty ? weba.toList() : m4a;
weba = weba.isEmpty ? m4a.toList() : weba;
return SourceMap(
m4a: SourceQualityMap(