omansak / libvideo

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

Exception thrown: "System.Net.Http.HttpRequestException" in mscorlib.dll or IndexOutOfRangeException #127

Closed EvdAnton closed 4 years ago

EvdAnton commented 5 years ago

using VideoLibrary; ... try { var youtube = YouTube.Default; var video = youtube.GetVideo(VideoURL);
File.WriteAllBytes(artistSongNames, video.GetBytes()); <--- throw Exception ..

A few days ago, the code worked fine, about 2 days ago, he started throwing an error