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 open for writing: [Errno 36] File name too long: #5060

Closed
9 tasks done
rubyFeedback opened this issue Sep 27, 2022 · 3 comments
Closed
9 tasks done
Labels
bug Bug that is not site-specific invalid This doesn't seem right

Comments

@rubyFeedback
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2022.09.01 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood

The following website fails:

ydl "https://twitter.com/JuliaDavisNews/status/1574860347697205262"

ydl is just my alias to yt-dlp on the commandline.

My browser does not play twitter videos for some reason so I download
via yt-dlp.

The error I get is:

[twitter] 1574860347697205262: Downloading guest token
[twitter] 1574860347697205262: Downloading JSON metadata
[twitter] 1574860347697205262: Downloading m3u8 information
[info] 1574860347697205262: Downloading 1 format(s): http-10368

ERROR: unable to open for writing: [Errno 36] File name too long: "Julia Davis - Top Russian propagandist Vladimir 
Solovyov is quite upset with how Putin's "partial mobilization" is going and everything the supposed "superpower" is 
lacking. So much in this video, just watch. It fits right in with what I described in my latest article⤵️     
[1574860347697205262].mp4.part"

Proposal to fix:

"if too long file name, and python is too stupid to handle long names, then rename
to a shorter name such as:

"Julia Davis - Top Russian _video_shortened_byyt_dlp.mp4"

or something like this. Right now it fails to download because of some weird
assumption it appears to be doing.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

See above.

PS: The template is really annoying to use. Do we also have to do sit ups
and leg push ups before filing a new bug report?

I mean it's just a simple bug. There is no magic behind it; I just fed
yt-dlp one remote URL. It failed. What more is there to show really? I
get that for some bug reports you need to know more information but 
the error reporting "too long file name" is not good. In ruby I'd just
check for the file size and automatically rename (and notify the user
about this too).
@rubyFeedback rubyFeedback added bug Bug that is not site-specific triage Untriaged issue labels Sep 27, 2022
@dirkf
Copy link
Contributor

dirkf commented Sep 27, 2022

Related: ytdl-org/youtube-dl#29912

@october262
Copy link

try again with yt-dlp -o "%(id)s.%(ext)s" "https://twitter.com/JuliaDavisNews/status/1574860347697205262"
the video will now download.

@pukkandan
Copy link
Member

Read pinned issue

@pukkandan pukkandan closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2022
@pukkandan pukkandan added invalid This doesn't seem right and removed triage Untriaged issue labels Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants