bitbybyte / fantiadl

Download posts and media from Fantia
MIT License
299 stars 51 forks source link

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect #89

Closed tins820 closed 2 years ago

tins820 commented 2 years ago

i encountered this issue while parsing for https://fantia.jp/posts/1011234 OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '...\桃色れく\1011234\「🍑ももれくフレンズ🍑(月額1000円)」\x08の無料チケット'

i think it is because the backslash characters...

may i know is there any bypass solution for now?...

bitbybyte commented 2 years ago

Very bizzare, as \x08 is the control character for a backspace. Sure enough, the API response has U+0008:

"title": "「🍑ももれくフレンズ🍑(月額1000円)」\bの無料チケット",

Basically we're not handling Unicode control characters at all so \b gets translated to \x08 and of course the file system doesn't like that.

tins820 commented 2 years ago

oh... is there any suggestion on how to handle this ?T_T... other than asking the fanclub to modify the title...

bitbybyte commented 2 years ago

It was fixed already, if you use the .exe you'll need to wait for a new release.

tins820 commented 2 years ago

okokok thanks a lot!!! really appreciate your effort in this project T_T ありがとうございます!!