omansak / libvideo

A lightweight .NET library to download YouTube videos.
BSD 2-Clause "Simplified" License
553 stars 164 forks source link

GetAllVideosAsync And GetVideoAsync Not Working #285

Closed hady-khann closed 3 months ago

hady-khann commented 3 months ago

Hi recently i cant get get any video i use code below :

IEnumerable<YouTubeVideo> Qualities = await YouTube.Default.GetAllVideosAsync(URL);

i get this error : Error = Unable to evaluate the expression. Operation not supported. Unknown error: 0x80070057.

And When Using : YouTubeVideo Quality = await YouTube.Default.GetVideoAsync(URL);

i get this error : VideoLibrary.Exceptions.UnavailableStreamException

And SomeTimes This Error : cannot evaluate expression since the function evaluation requires all threads to run.

omansak commented 3 months ago

@hady-khann Hello thank you for issue and pull request. GetPlayerResponseAndroidAsync moved into GetAllVideosAsync. Now async funcs work perfectly. Can you test it ?

hady-khann commented 3 months ago

@hady-khann Hello thank you for issue and pull request. GetPlayerResponseAndroidAsync moved into GetAllVideosAsync. Now async funcs work perfectly. Can you test it ?

@omansak hi , thanks to reply and fix bug . now it works perfectly in my tests .