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

Errno 36 File name too long when downloading Unicode filenames from twitter #24003

Closed
Sidicas opened this issue Feb 9, 2020 · 0 comments
Closed
Labels

Comments

@Sidicas
Copy link

@Sidicas Sidicas commented Feb 9, 2020

Checklist

  • [x ] I'm reporting a broken site support issue
  • [ x] I've verified that I'm running youtube-dl version 2020.01.24
  • [x ] I've checked that all provided URLs are alive and playable in a browser
  • [ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [x ] I've searched the bugtracker for similar bug reports including closed ones
  • [x ] I've read bugs section in FAQ

Verbose log


youtube-dl -v https://twitter.com/k715i/status/1226389860904124420
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://twitter.com/k715i/status/1226389860904124420']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.24
[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-6-amd64-x86_64-with-debian-10.2
[debug] exe versions: avconv 4.1.4, avprobe 4.1.4, ffmpeg 4.1.4, ffprobe 4.1.4, phantomjs .
[debug] Proxy map: {}
[twitter] 1226389860904124420: Downloading guest token
[twitter] 1226389860904124420: Downloading JSON metadata
[twitter] 1226389860904124420: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://video.twimg.com/ext_tw_video/1226388334827565058/pu/vid/720x1280/kInntNNT3tDFgf1g.mp4?tag=10'
ERROR: unable to open for writing: [Errno 36] File name too long: 'ITCHIE-METAL - \xe4\xb8\x8a\xe6\x89\x8b\xe4\xbc\x9a\xe5\x8e\xb3\xe9\x81\xb8\xe3\x83\x94\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xa2\xe3\x83\x83\xe3\x83\x97\xe5\x8b\x95\xe7\x94\xbb\xe3\x82\xb3\xe3\x83\xac\xe3\x82\xaf\xe3\x82\xb7\xe3\x83\xa7\xe3\x83\xb3  \xe3\x82\x82\xe3\x81\xaf\xe3\x82\x84\xe4\xb9\x85\xe3\x81\x97\xe3\x81\xb6\xe3\x82\x8a\xe6\x84\x9f\xe3\x81\xae\xe3\x81\x82\xe3\x82\x8bstarlight  \xe4\xbb\x8a\xe6\x97\xa5\xe3\x81\xae\xe9\x9e\x98\xe5\xb8\xab\xe3\x82\xab\xe3\x83\xa1\xe3\x83\xa9\xe3\x81\xa7\xe6\x8c\xaf\xe3\x82\x8a\xe8\xbf\x94\xe3\x82\x8b\xe3\x80\x82 \xe9\x9e\x98\xe5\xb8\xab\xe3\x81\x93\xe3\x81\xae\xe6\x9b\xb2\xe3\x81\xab\xe6\x80\x9d\xe3\x81\x84\xe5\x85\xa5\xe3\x82\x8c\xe3\x81\x82\xe3\x82\x8a\xe3\x81\x9d\xe3\x81\x86\xe3\x80\x82  #BABYMETAL #Hamburg  #\xe9\x9e\x98\xe5\xb8\xab\xe3\x82\xab\xe3\x83\xa1\xe3\x83\xa9-1226389860904124420.mp4.part'
Traceback (most recent call last):
  File "/home/david/bin/youtube-dl/youtube_dl/downloader/http.py", line 250, in download
    ctx.tmpfilename, ctx.open_mode)
  File "/home/david/bin/youtube-dl/youtube_dl/utils.py", line 2046, in sanitize_open
    stream = open(encodeFilename(filename), open_mode)
IOError: [Errno 36] File name too long: 'ITCHIE-METAL - \xe4\xb8\x8a\xe6\x89\x8b\xe4\xbc\x9a\xe5\x8e\xb3\xe9\x81\xb8\xe3\x83\x94\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xa2\xe3\x83\x83\xe3\x83\x97\xe5\x8b\x95\xe7\x94\xbb\xe3\x82\xb3\xe3\x83\xac\xe3\x82\xaf\xe3\x82\xb7\xe3\x83\xa7\xe3\x83\xb3  \xe3\x82\x82\xe3\x81\xaf\xe3\x82\x84\xe4\xb9\x85\xe3\x81\x97\xe3\x81\xb6\xe3\x82\x8a\xe6\x84\x9f\xe3\x81\xae\xe3\x81\x82\xe3\x82\x8bstarlight  \xe4\xbb\x8a\xe6\x97\xa5\xe3\x81\xae\xe9\x9e\x98\xe5\xb8\xab\xe3\x82\xab\xe3\x83\xa1\xe3\x83\xa9\xe3\x81\xa7\xe6\x8c\xaf\xe3\x82\x8a\xe8\xbf\x94\xe3\x82\x8b\xe3\x80\x82 \xe9\x9e\x98\xe5\xb8\xab\xe3\x81\x93\xe3\x81\xae\xe6\x9b\xb2\xe3\x81\xab\xe6\x80\x9d\xe3\x81\x84\xe5\x85\xa5\xe3\x82\x8c\xe3\x81\x82\xe3\x82\x8a\xe3\x81\x9d\xe3\x81\x86\xe3\x80\x82  #BABYMETAL #Hamburg  #\xe9\x9e\x98\xe5\xb8\xab\xe3\x82\xab\xe3\x83\xa1\xe3\x83\xa9-1226389860904124420.mp4.part'

Description

Twitter video that contains unicode characters in the filename does not download.

@remitamine remitamine closed this Feb 9, 2020
@remitamine remitamine added the duplicate label Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.