YoutubeExplode
YoutubeExplode copied to clipboard
DemoConsole errors out when saving file if user passed in full video url instead of VideoId
Version
latest
Details
I couldnt do git push/pull request. If error is on my side, sorry.
Program.cs:41: ~~var fileName = $"{videoIdOrUrl}.{streamInfo.Container.Name}";~~ current var fileName = $"{VideoId.Parse(videoIdOrUrl).Value}.{streamInfo.Container.Name}"; <= proposed
VideoIdSpec:27: [InlineData("https://www.youtube.com/watch?v=yIVRs6YSbOM", "yIVRs6YSbOM")] <= proposed
Steps to reproduce
- sart DemoConsole
- provide: video in url format, like: https://www.youtube.com/watch?v=u_yIGGhubZs
Thanks, fixed :)