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

Can --update be used in the same command line when downloading a video? #20570

Closed
DaveF63 opened this issue Apr 5, 2019 · 2 comments
Closed

Can --update be used in the same command line when downloading a video? #20570

DaveF63 opened this issue Apr 5, 2019 · 2 comments

Comments

@DaveF63
Copy link

@DaveF63 DaveF63 commented Apr 5, 2019

  • [x ] I've verified and I assure that I'm running youtube-dl 2019.04.01

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [ x] Question-

Using windows 7 running from a batch file

Can --update be used in the same command line when downloading a video or does it have to be run as a separate command?
I've tried:

youtube-dl --update -f best --prefer-ffmpeg --no-continue --no-part -o "C:\Downloads\xx.mp4" https://www.youtube.com/watch?v=XbsrlKg2oUY

&

youtube-dl --update
youtube-dl -f best --prefer-ffmpeg --no-continue --no-part -o "C:\Downloads\xx.mp4" https://www.youtube.com/watch?v=XbsrlKg2oUY

Used another batch file to call two separate batch files each containing one of the above lines.
Used start /wait option for each line.

This is the output every time:

[youtube] XbsrlKg2oUY: Downloading webpage
[youtube] XbsrlKg2oUY: Downloading video info webpage
[download] Destination: C:\Downloads\Video\Clouds of Witness\xx.mp4
[download] 23.2% of 34.51MiB at 7.36MiB/s ETA 00:03 Access is denied.
Updated youtube-dl to version 2019.04.01.
[download] 100% of 34.51MiB in 00:04

It downloads but doesn't delete youtube-dl.exe.new The second command to download the video doesn't wait & appears to lock the update process.
Is there a solution?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 5, 2019

Solutions is not to run further commands until update is complete.

@dstftw dstftw closed this Apr 5, 2019
@DaveF63
Copy link
Author

@DaveF63 DaveF63 commented Apr 5, 2019

Hmm.. Not much of a solution.

I've looked a bit deeper at this page: https://ytdl-org.github.io/youtube-dl/download.html
wget/curl could be used to d/l https://yt-dl.org/downloads/2019.04.01/youtube-dl.exe if the folder wasn't formatted as the latest date.

Is there a reason it can't be in a 'latest' folder similar to the unix versions?

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.