Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Only Downloads Some Videos. #301

@Koolkuts1

Description

@Koolkuts1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions