iBicha / UnityYoutubePlayer

Play YouTube videos in Unity
The Unlicense
336 stars 63 forks source link

Playlist Entries #63

Closed Eikthyr closed 3 years ago

Eikthyr commented 3 years ago

var playList = await YoutubeDl.GetVideoMetaDataAsync(playlistUrl, YoutubeDlOptions.FlatPlaylist, k_PlaylistFields);

PlaylistTitle.text = playList.Title;

foreach (var entry in playList.Entries) -->> there is an error in this part ...... ..... ....

I think there is a problem in connecting the videos in the playlist from the plugin.playList doesn't get any information except the title.

iBicha commented 3 years ago

If you are referring to the draft PR, what is the error? And it is expected to only get the url and the title

Eikthyr commented 3 years ago

that's what i didn't understand.i started the project without making any changes but i am getting error. There is no problem in other scenes, but in the part I specified, the entries return null.i am using 2020.2 as unity version

Eikthyr commented 3 years ago

Error any chance to fix it?

iBicha commented 3 years ago

That feature is a work in progress, but leave the url to the playlist, and I'll try to investigate when I get some time

Eikthyr commented 3 years ago

I solved the problem.There is no 'playlist' at my link. Youtube does not see someone else's list as a 'playlist'. e.g --- someone else's list --- https://www.youtube.com/watch?v=a24u_ACKnvs&list=UUJBpeNOjvbn9rRte3w_Kklg --- my list --- https://www.youtube.com/playlist?list=PL6gJDG2WN9JoJCAw0lyCPTvssUgLVDgtP

I think the plugin is giving an error because of this 'watch' part.If I change the link from 'watch' to 'playlist', the problem disappears. https://www.youtube.com/playlist?list=UUJBpeNOjvbn9rRte3w_Kklg

I hope I have helped others.thanks again