Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unable to download video: [Errno 36] Filename too long #427

Open
holotone opened this issue Apr 26, 2024 · 4 comments
Open

ERROR: Unable to download video: [Errno 36] Filename too long #427

holotone opened this issue Apr 26, 2024 · 4 comments

Comments

@holotone
Copy link

This happens frequently with Twitter video downloads. It appears metube uses the entire text of the Twitter post as the filename, and this is reaching some kind of limit somewhere. When this happens I get the following error message:

ERROR: Unable to download video: [Errno 36] Filename too long

Don't hesitate to ask if you need any more info.

@PikuZheng
Copy link
Contributor

duplicate of #56
This is usually a file system limitation. Most os limit file names to a maximum of 255 characters.

@holotone
Copy link
Author

Agreed, wouldn't it be an easy fix to have metube truncate file names to less than 255 characters?

@trekGriffin
Copy link

add an environment variable to this container. This will fix it.
environment:
- 'YTDL_OPTIONS={"trim_file_name":10}'

@holotone
Copy link
Author

add an environment variable to this container. This will fix it. environment: - 'YTDL_OPTIONS={"trim_file_name":10}'

That worked great, thanks a bunch!

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

No branches or pull requests

3 participants