DevYukine / red_oxide

A CLI helping with uploading to Redacted, inspired by REDBetter
MIT License
114 stars 21 forks source link

Protection against too long file names #24

Open DrowningWhale opened 6 months ago

DrowningWhale commented 6 months ago

Sometimes the naming of the folder gets too long and the torrent upload fails with the API returning: {"status":"failure","error":"The torrent contained one or more files with too long a name: [name]"}

A check should be added to see if the path is too long.

DrowningWhale commented 6 months ago

I just saw that there is a check in place already, but this one slipped through the cracks. It is an exceptionally long album name with a sub-folder with images.