Is there anyway to get the youtube-dl.extract_info()
function to use unicode when creating the output file?
I have encountered the problem that if you download something with unicode characters like |
in the title then the output file name will not have the same character. It will be replaced with _
instead.
Take this song title for example.
If I download it with youtube-dl then I get this file name 【Nightcore】→ Pretty Girl _ Lyrics-dMAOnScOyGE
. Same thing happens with different kind of characters.
Is there any way to stop this? Because it's a annoying if you want do do anything with that file afterwards.
To get the new file name I would need to do something like os.listdir(dir) to get the file. So it's not impossible to get the new file name, but I am just interested if there is a easier way.