YoutubeExplode icon indicating copy to clipboard operation
YoutubeExplode copied to clipboard

GetVideoMediaStreamInfosAsync() seems to be broken

Open jungjanos opened this issue 7 years ago • 6 comments

Hi Alexey!

I have tried YoutubeExplode 4.7.9 both on Windows desktop as well as on Xamarin. The GetVideoAsync call seems to be working (though this one I only tried on Windows) but GetVideoMediaStreamInfosAsync() seems to be broken. It returns a MediaStreamInfoSet object with empty- [0] - stream arrays for all three types of streams. The "ValidUntil" property seems to be valid though.

BR Janos

jungjanos avatar Sep 11 '19 15:09 jungjanos

Agreed, it stopped working in the last 20 minutes.

zoriya avatar Sep 11 '19 15:09 zoriya

Breaking change by YouTube. See also fent/node-ytdl-core#486, TeamNewPipe/NewPipe#2615.

Looking at this line, YouTube has moved adaptive_fmts and url_encoded_fmt_stream_map into playerResponseJson as streamingData.adaptiveFormats and streamingData.formats respectively.

omarroth avatar Sep 11 '19 15:09 omarroth

Will look into it as soon as I can

Tyrrrz avatar Sep 11 '19 17:09 Tyrrrz

Is this still not working? Can someone give me a video ID?

Tyrrrz avatar Sep 13 '19 14:09 Tyrrrz

YouTube has reverted the above change, see TeamNewPipe/NewPipe#2623. I would still recommend supporting streamingData.formats (maybe as a fallback), but the current version should still work :).

omarroth avatar Sep 13 '19 14:09 omarroth

@omarroth It's not the first time they reverted it, YoutubeExplode was using streamingData.formats for almost a year until they went back to url-encoded format.

Closing for now as the issue was resolved on its own.

Tyrrrz avatar Sep 13 '19 14:09 Tyrrrz