https://www.youtube.com/playlist?list=PLTKRG4AXz0shlhzugZihRIVGu-GlDo9P5 - by downloading this link with enabled create a playlist name folder settings i got this folder name - ""Мифологическая мифология" сезон 1 [18+]" and this ""Мифологическая мифология" сезон 1 [18+].m3u" as a playlist file name.
I think that instead replacing quote character by """ need something else, for example double apostrophe (''some file name'') or just nothing.
Current replacing looks ugly.