Youtubeexplode: Error when GetVideoMediaStreamInfosAsync() on some videos

Created on 22 Sep 2019  路  4Comments  路  Source: Tyrrrz/YoutubeExplode

VideoId: eHei739O3jw

var client = new YoutubeClient();
var streamInfoSet = await client.GetVideoMediaStreamInfosAsync("eHei739O3jw");

Debug Error in YoutubeClient.Video.cs at line 441:
var itag = streamInfoDic["itag"].ParseInt();

Now, I resolved by add code:

if (streamInfoDic.Count > 0)
{
    var itag = streamInfoDic["itag"].ParseInt();
bug can't reproduce caused by youtube help wanted

All 4 comments

This video seems to only have one stream but I can't reproduce this issue.

Is this still reproducible for you?

Thank you !!! In new version code, everything's ok.

Great :)

Was this page helpful?
0 / 5 - 0 ratings