Skip to content

Temp file name too long error fix#200

Open
sorenkrt wants to merge 2 commits into
stephengpope:mainfrom
sorenkrt:main
Open

Temp file name too long error fix#200
sorenkrt wants to merge 2 commits into
stephengpope:mainfrom
sorenkrt:main

Conversation

@sorenkrt

@sorenkrt sorenkrt commented Aug 20, 2025

Copy link
Copy Markdown

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
Copy Markdown
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