{"action":"closed","issue":{"url":"https://api.github.com/repos/i3arnon/libvideo/issues/87","repository_url":"https://api.github.com/repos/i3arnon/libvideo","labels_url":"https://api.github.com/repos/i3arnon/libvideo/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/i3arnon/libvideo/issues/87/comments","events_url":"https://api.github.com/repos/i3arnon/libvideo/issues/87/events","html_url":"https://github.com/i3arnon/libvideo/issues/87","id":313641467,"number":87,"title":"Error on GetBytes","user":{"login":"HiImLesic","id":30041432,"avatar_url":"https://avatars3.githubusercontent.com/u/30041432?v=4","gravatar_id":"","url":"https://api.github.com/users/HiImLesic","html_url":"https://github.com/HiImLesic","followers_url":"https://api.github.com/users/HiImLesic/followers","following_url":"https://api.github.com/users/HiImLesic/following{/other_user}","gists_url":"https://api.github.com/users/HiImLesic/gists{/gist_id}","starred_url":"https://api.github.com/users/HiImLesic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiImLesic/subscriptions","organizations_url":"https://api.github.com/users/HiImLesic/orgs","repos_url":"https://api.github.com/users/HiImLesic/repos","events_url":"https://api.github.com/users/HiImLesic/events{/privacy}","received_events_url":"https://api.github.com/users/HiImLesic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-12T09:15:14Z","updated_at":"2018-04-12T10:09:48Z","closed_at":"2018-04-12T10:09:48Z","author_association":"NONE","body":"I just installed the nuget and I basically get an InvalidOperationException on any link I try to download on GetBytes.\r\n\r\n`var youtube = YouTube.Default;\r\n\t\t\t\tvar videos = youtube.GetAllVideos(this.videoToDownload.Link);\r\n\t\t\t\tvar audio = videos\r\n\t\t\t\t\t.Where(v => v.AudioFormat == AudioFormat.Aac && v.AdaptiveKind == AdaptiveKind.Audio)\r\n\t\t\t\t\t.ToList();\r\n\t\t\t\tif (audio.Count > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tbyte[] bytes = audio[0].GetBytes();\r\n\t\t\t\t\tFile.WriteAllBytes(file + \".aac\", bytes);\r\n\t\t\t\t}`\r\n\r\nExample link I get an error on:\r\nhttps://www.youtube.com/watch?v=94bGzWyHbu0"}}
{"actor":{"display_login":"HiImLesic"}}