Hallo ihr Lieben,
ich versuche mich gerade an der NYoutubeDL Library, welche den Zugang zur youtube-dl Library in .NET ermöglicht.
Der Download funktioniert, allerdings habe ich Probleme den Status in einer ProgressBar wieder zu geben.
Die Library: gitlab.com/BrianAllred/NYoutubeDL
Mein Code:
Was mache ich falsch? Ganz wage wird es hier erklärt, für viele wahrscheinlich eine ausreichende Erklärung, ich kann damit allerdings nichts anfangen und würde es gerne verstehen.
Grüße
ich versuche mich gerade an der NYoutubeDL Library, welche den Zugang zur youtube-dl Library in .NET ermöglicht.
Der Download funktioniert, allerdings habe ich Probleme den Status in einer ProgressBar wieder zu geben.
Die Library: gitlab.com/BrianAllred/NYoutubeDL
Mein Code:
C#-Quellcode
- public void StartDownload(string url)
- {
- client.Options.FilesystemOptions.Output = @"C:\Users\Admin\Desktop\test\testasync.mp3";
- client.Options.PostProcessingOptions.ExtractAudio = true;
- client.VideoUrl = url;
- client.YoutubeDlPath = Directory.GetCurrentDirectory() + @"\lib\dl.exe";
- client.PrepareDownloadAsync();
- client.DownloadAsync();
- client.Info.PropertyChanged += delegate
- {
- DownloadInfo info = new DownloadInfo();
- progressBar1.Value = info.VideoProgress;
- };
- }
Was mache ich falsch? Ganz wage wird es hier erklärt, für viele wahrscheinlich eine ausreichende Erklärung, ich kann damit allerdings nichts anfangen und würde es gerne verstehen.
Grüße