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

-o option no longer works with folder in absolute path #18119

Closed
guygodin opened this issue Nov 9, 2018 · 4 comments
Closed

-o option no longer works with folder in absolute path #18119

guygodin opened this issue Nov 9, 2018 · 4 comments

Comments

@guygodin
Copy link

@guygodin guygodin commented Nov 9, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.11.07. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.11.07

Before submitting an issue make sure you have:

  • 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 same command-line used to work a few weeks ago, it just stopped working with a recent update.
If the path is directly under a drive letter it works (-o "D:\"), but if there is a folder included in the path, it no longer works (-o "D:\Videos\").

Note: the folder actually exists and is writable.

Full verbose log pasted below.

youtube-dl.exe "https://youtu.be/rG4jSz_2HDY" -f bestvideo+bestaudio[ext=m4a]/mp4 -o "D:\Videos\%(title)s.%(ext)s" --restrict-filenames -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://youtu.be/rG4jSz_2HDY', '-f', 'bestvideo+bestaudio[ext=m4a]/mp4', '-o', 'D:\\Videos\\%(title)s.%(ext)s', '--restrict-filenames', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.11.07
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg N-73219-gd62657e
[debug] Proxy map: {}
[youtube] rG4jSz_2HDY: Downloading webpage
[youtube] rG4jSz_2HDY: Downloading video info webpage
[debug] Invoking downloader on 'https://r3---sn-nx57ynlz.googlevideo.com/videoplayback?c=WEB&initcwndbps=1018750&signature=210B9D36D3F7B8C298100FDB16BEDEF73B5C47D1.7AA92137A3934E9A58D9775AB223897826992AAE&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C264%2C266%2C271%2C278%2C313&requiressl=yes&pl=19&fvip=3&ip=172.103.160.200&key=yt6&ipbits=0&id=o-AO1MfFhfgkSmCnb_Xr1WJK91Ytj9RxJsE2sBpGvVBpTM&ei=lPjkW4_UMYeLkwba2KSQAw&mm=31%2C26&mn=sn-nx57ynlz%2Csn-n4v7sney&dur=134.300&gir=yes&xtags=vproj%3Dmesh&lmt=1482396629802216&clen=303047027&mt=1541732426&mv=m&ms=au%2Conr&source=youtube&mime=video%2Fmp4&keepalive=yes&itag=266&expire=1541754100&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cxtags%2Cexpire&ratebypass=yes'
ERROR: unable to open for writing: [Errno 2] No such file or directory: 'D:\\Videos\\360_Great_Hammerhead_Shark_Encounter_National_Geographic.f266.mp4.part'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpj6iiia1g\build\youtube_dl\downloader\http.py", line 250, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpj6iiia1g\build\youtube_dl\utils.py", line 457, in sanitize_open
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Videos\\360_Great_Hammerhead_Shark_Encounter_National_Geographic.f266.mp4.part'
@guygodin guygodin changed the title -o option doesn't work with folder in absolute path -o option no longer works with folder in absolute path Nov 9, 2018
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 9, 2018

Invalid path. Do not escape backslash.

@dstftw dstftw closed this Nov 9, 2018
@dstftw dstftw added the invalid label Nov 9, 2018
@guygodin
Copy link
Author

@guygodin guygodin commented Nov 9, 2018

Invalid path. Do not escape backslash.

The issue still occurs with the backslashes not escaped. That's not the problem. I've re-pasted the log.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 9, 2018

Most likely the account youtube-dl is running on behalf of doesn't have enought permissions to write at this location.

@guygodin
Copy link
Author

@guygodin guygodin commented Nov 9, 2018

Most likely the account youtube-dl is running on behalf of doesn't have enought permissions to write at this location.

You are correct, I tried a different folder and it worked, sorry for the trouble and thank you for the prompt response!

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.