Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
301 stars 122 forks source link

[BUG] Video Quality #197

Closed dvird closed 2 years ago

dvird commented 2 years ago

Hi many times the function "bestquality" return the lowest quality.

I tried the opposite like "streams.sortByVideoQuality().first" and it returns better quality.

this is the link "https://youtube.com/shorts/5M0W2us5yFw?feature=share"

Hexer10 commented 2 years ago

Thanks for the report, seems like there is a typo here, instead of first I'm getting last video.

https://github.com/Hexer10/youtube_explode_dart/blob/0ce24bf0178571a0fd2706539b8b94db32a7ede3/lib/src/videos/streams/video_stream_info.dart#L39

I'll make sure to fix it in the next version