mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.66k stars 880 forks source link

Possibility to truncate filename too long? #5714

Closed kriss6557 closed 2 weeks ago

kriss6557 commented 2 weeks ago

Hi, When downloading some file from pinterest I get: [download][warning] OSError: [Errno 36] Filename too long: <destination path>/<very long filename>.<ext> Is there a way to truncate the filename to specific given length like setting in gallery-dl.conf: "filename": "{id}_{title[:200]}.{extension}" To limit it to 200 characters. I tried this but it doesn't have any effect. Is something supported or not at all ? Thank you

Hrxn commented 2 weeks ago

It is supported.. maybe your filename is still too long? It's also the entire path name, not the name of the file itself, remember to check your "directory" setting as well.

kriss6557 commented 2 weeks ago

yes I reduced it to 100 and it worked. thank you.