Skip to content

ArgumentNullException when calling vid.GetBytes() #306

@gasand

Description

@gasand

Hi,
I'm trying to download videos but I keep receiving the following error:

Code sample:

var youTube = YouTube.Default;
var vid = youTube.GetVideo(VideoURL);
string videoFilePath = source + youtubeID + vid.FileExtension;
File.WriteAllBytes(videoFilePath, vid.GetBytes());

Tested with multiple video URLs, always the same result.
Could you please check if GetBytes() is broken or if there’s an update required for YouTube’s latest changes?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions