Skip to content

Conversation

@sorenkrt
Copy link

@sorenkrt sorenkrt commented Aug 20, 2025

After I struggle with file name too long error when I download facebook videos with dlp I found truncating file name to a fix number of characters would be a good fix.

@omkarbabar1
Copy link
Contributor

Nice fix! To make it safer, I suggest truncating the title and adding the video ID to avoid collisions:
'outtmpl': os.path.join(temp_dir, '%(title).50s-%(id)s.%(ext)s')
This keeps filenames readable and unique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants