You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2020. It is now read-only.
Console.Write("Play Command Executed!\n");
IEnumerable videoInfos = DownloadUrlResolver.GetDownloadUrls(file);
Console.Write("Video Found!\n");
VideoInfo video = videoInfos
.First(info => info.VideoType == VideoType.Mp4 && info.Resolution == 360);
Console.Write("Download Starting Soon!\n");
if (video.RequiresDecryption)
{
DownloadUrlResolver.DecryptDownloadUrl(video);
}
Console.Write("Decryption Finished!\n");
var videoDownloader = new VideoDownloader(video, Path.Combine("D:/download", "CurrentSong" + video.VideoExtension));
videoDownloader.DownloadProgressChanged += (sender, args) => Console.WriteLine(args.ProgressPercentage);
videoDownloader.Execute();
When this code is ran and the file variable is given a url it wont go past the part that writes to the console about decryption being done on all but one video that it will download and run without problems normally
I am using it with CSharpPlus in an attempt to create a discord bot.