We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
youtube_explode_dart/lib/src/playlists/playlist_client.dart
Line 29 in 673eeee
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
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
I implemented a custom solution that requires parsing the html page.
https://github.com/khaled-0/Syncara/blob/fdfa6de4e89e5633262ab1597edf1e3f47c68876/lib/provider/library_provider.dart#L74
// Parse html page to retrieve custom thumbnails static Future<Playlist> _playlistWithThumbnail( Playlist playlist, ) async { try { final response = await yt.YoutubeHttpClient().getString( playlist.externalURL, ); final img = parse(response).querySelectorAll("meta[property='og:image']"); final max = img.last.attributes["content"]!; final std = (img.elementAtOrNull(1) ?? img.first).attributes["content"]!; return playlist.copyWith(thumbnailStd: std, thumbnailMax: max); } catch (_) { return playlist; } }
No branches or pull requests
youtube_explode_dart/lib/src/playlists/playlist_client.dart
Line 29 in 673eeee
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
The text was updated successfully, but these errors were encountered: