Bluegrams / YoutubeDLSharp

A simple .NET wrapper library for youtube-dl and yt-dlp
BSD 3-Clause "New" or "Revised" License
163 stars 31 forks source link

403 Forbidden #48

Open xeo545x39 opened 6 months ago

xeo545x39 commented 6 months ago

When using library it returns 403 forbidden as on image below. Running yt-dlp standalone works correctly and downloads the file.

var ytdl = new YoutubeDL
    {
        OutputFolder = convertedDir
    };

   var result = await ytdl.RunVideoDownload(
                new Uri(videoUrl).ToString());

image image

alxnull commented 4 months ago

Hey @xeo545x39, did you ensure to use the exact same version of yt-dlp in both cases? Could you share an example link where this happens to help me reproduce?