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

Twitter: File name too long #23723

Closed
buzo-ffm opened this issue Jan 13, 2020 · 1 comment
Closed

Twitter: File name too long #23723

buzo-ffm opened this issue Jan 13, 2020 · 1 comment
Labels

Comments

@buzo-ffm
Copy link

@buzo-ffm buzo-ffm commented Jan 13, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.01.01
  • I've checked that all provided URLs are alive and playable in a browser
  • 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

Verbose log

$ youtube-dl -v https://twitter.com/atulkasbekar/status/1215128694584270849/video/1
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://twitter.com/atulkasbekar/status/1215128694584270849/video/1']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.01.01
[debug] Python version 3.8.1 (CPython) - Linux-5.4.11-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[twitter] 1215128694584270849: Downloading guest token
[twitter] 1215128694584270849: Downloading JSON metadata
[twitter] 1215128694584270849: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://video.twimg.com/ext_tw_video/1215128591484248064/pu/vid/640x416/iBxXlPWlm17uEWSB.mp4?tag=10'
ERROR: unable to open for writing: [Errno 36] File name too long: 'atul kasbekar - An astrophotographer has clicked an exceptional video, wherein we can feel the rotation of the earth  Using a tracking mount, aligned with North Star, he kept clicking images every 12 seconds for the next 3 hours.  The camera is looking at the same portion of the Milky Way  Fab!-1215128694584270849.mp4.part'
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 249, in download
    ctx.stream, ctx.tmpfilename = sanitize_open(
  File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2046, in sanitize_open
    stream = open(encodeFilename(filename), open_mode)
OSError: [Errno 36] File name too long: 'atul kasbekar - An astrophotographer has clicked an exceptional video, wherein we can feel the rotation of the earth  Using a tracking mount, aligned with North Star, he kept clicking images every 12 seconds for the next 3 hours.  The camera is looking at the same portion of the Milky Way  Fab!-1215128694584270849.mp4.part'

Description

You have to provide a file name via the -o option, otherwise it does not work – see above.

@buzo-ffm
Copy link
Author

@buzo-ffm buzo-ffm commented Jan 13, 2020

Duplicate of which issue?

@ytdl-org ytdl-org deleted a comment from StyxBzh Jan 15, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.