redsolver / yt-splitter

Downloads and splits audio tracks from a YouTube video according to the chapters/tracks. Useful for compilations or full album uploads.
MIT License
76 stars 9 forks source link

creation failed , the directory name is invalid #1

Closed bajechele closed 3 years ago

bajechele commented 3 years ago

if the utube video title contain | this symbol its giving error

Unhandled exception: FileSystemException: Creation failed, path = 'name | Future blast booom' (OS Error: The directory name is invalid. , errno = 267)

0 _Directory.createSync (dart:io/directory_impl.dart:133)

1 main (file:///d:/a/yt-splitter/yt-splitter/bin/yt_splitter.dart:99)

2 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281)

3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184)

i think this is bcoz of windows coz by default yt-splitter creates directory and it uses the vdo title as the name of that directory but in windows using | / \ ? " : * < > this characters in naming is locked ... thats why i checked utubedl replaces them with space or _ if the title contains them ....

redsolver commented 3 years ago

I just released Version 0.1.2, it should fix this issue: https://github.com/redsolver/yt-splitter/releases/tag/v0.1.2

bajechele commented 3 years ago

tested working flawlessly now ... thanks