Bluegrams / YoutubeDLSharp

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

Download data does not represent file name correctly #19

Closed UnidentifiedX closed 2 years ago

UnidentifiedX commented 2 years ago

I think this doesn't work for non-ASCII characters. Take racing into the night (夜に駆ける), for example. While it does save the file name correctly, taking RunResult.Data returns a file path of C:\...\bin\Debug\net6.0-windows\output\.mp3. As you can see, I can no longer get the file path of the audio file. image_2022-10-24_110445459

alxnull commented 2 years ago

Thanks for bringing up this issue. After some investigation, I implemented a fix for this in https://github.com/Bluegrams/YoutubeDLSharp/commit/fdf3256da18d0e2da4a2f33ad4a1b72ff8273a50. The fix should be available with the next release.