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
324 stars 143 forks source link

Playlist thumbnails are broken #296

Open khaled-0 opened 1 month ago

khaled-0 commented 1 month ago

https://github.com/Hexer10/youtube_explode_dart/blob/673eeeedcf227bdaa401ae8d8154b84353990a61/lib/src/playlists/playlist_client.dart#L29

For playlist : https://www.youtube.com/playlist?list=PLP_uM5nc6HCAu1X-VJznlTU-iWRbw0on4 https://img.youtube.com/vi/PLP_uM5nc6HCAu1X-VJznlTU-iWRbw0on4/maxresdefault.jpg (or any variant) returns no image. Solution is to probably get the first video url, as i couldn't find any alt

khaled-0 commented 1 month ago

implementing either https://github.com/Tyrrrz/YoutubeExplode/pull/391/files or use oembed https://youtube.com/oembed?url=https%3A//www.youtube.com/playlist%3Flist%3DPLP_uM5nc6HCAu1X-VJznlTU-iWRbw0on4&format=json

Waiting for your thoughts on this and potential fix