DevYukine / red_oxide

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

Protection against too long file names #24

Open DrowningWhale opened 1 month ago

DrowningWhale commented 1 month 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 1 month 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.