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

Long filename of accompanying description or/and json file prevents download #16218

Closed
fireattack opened this issue Apr 19, 2018 · 0 comments
Closed
Labels

Comments

@fireattack
Copy link

@fireattack fireattack commented Apr 19, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.04.16
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

C:\Users\Administrator\Desktop>youtube-dl https://twitter.com/HurstPoliceDept/st
atus/986633953099608064 --write-description -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://twitter.com/HurstPoliceDept/status/98663395
3099608064', '--write-description', '-v']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2018.04.16
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-86175-g64ea4d1, ffprobe N-86175-g64ea4d1
[debug] Proxy map: {}
[twitter] 986633953099608064: Downloading webpage
[twitter:card] 986633953099608064: Downloading webpage
[twitter:card] 986633953099608064: Downloading m3u8 information
[twitter:card] 986633953099608064: Downloading mobile webpage
[twitter:card] 986633953099608064: Downloading main script
[twitter:card] 986633953099608064: Downloading API data
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video description to: Hurst PD - We've received requests for the
video files from the house explosion on 4_7. Here's a brief video clip from Offi
cer Hiser's dash cam footage that we are able to release. We are thankful ...-98
6633953099608064.description
ERROR: Cannot write description file Hurst PD - We've received requests for the
video files from the house explosion on 4_7. Here's a brief video clip from Offi
cer Hiser's dash cam footage that we are able to release. We are thankful ...-98
6633953099608064.description
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp9r95p1_v\bu
ild\youtube_dl\YoutubeDL.py", line 1761, in process_info
FileNotFoundError: [Errno 2] No such file or directory: "Hurst PD - We've receiv
ed requests for the video files from the house explosion on 4_7. Here's a brief
video clip from Officer Hiser's dash cam footage that we are able to release. We
 are thankful ...-986633953099608064.description"

Description of your issue, suggested solution and other information

When the combination of path and filename (of description or json) is too long, it doesn't download. The filename of the video seems will be trimmed so it alone doesn't cause problem (I can download without --write-description switch).

I suspect that's because the description file and json file has longer extension, and Youtube-dl doesn't check them.

Try youtube-dl https://twitter.com/HurstPoliceDept/st atus/986633953099608064 --write-description -v in a long enough path (in my case, it's merely C:\Users\Administrator\Desktop) to reproduce.

@fireattack fireattack changed the title Long filename of description or/and json prevents download Long filename of accompanying description or/and json file prevents download Apr 19, 2018
@dstftw dstftw closed this Apr 19, 2018
@dstftw dstftw added the duplicate label Apr 19, 2018
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.