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
322 stars 141 forks source link

Improve playlist search parsing #176

Closed mitchpk closed 3 years ago

mitchpk commented 3 years ago

Using this library recently, I realised I was unable to search for YouTube playlists at all, even using the deprecated method getVideosFromPage with onlyVideos = false and checking the return type to see if it is SearchPlaylist. These changes allow playlists to be properly parsed, along with getting their thumbnails. Note however that playlists can still only be fetched using getVideosFromPage as getVideos filters the results to only SearchVideos.

Hexer10 commented 3 years ago

Thanks for the PR! In the future the search API will be needing some changes considering that channels and playlist can be fetched as well!