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

Check other directory to see if file already exists #11039

Closed
jcandresen opened this issue Oct 26, 2016 · 4 comments
Closed

Check other directory to see if file already exists #11039

jcandresen opened this issue Oct 26, 2016 · 4 comments

Comments

@jcandresen
Copy link

@jcandresen jcandresen commented Oct 26, 2016

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.10.26.

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

Before submitting an issue make sure you have:

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

What is the purpose of your issue?

  • Question

Hey there.

I am using youtube-dl to download a specific channel.
Directory A is the directory I download and convert videos to. it could be /home/user/Videos/Yotube
Directory B is the directory I keep my downloaded videos in. /media/nas/Videos/Youtube

I download my videos to A since it is way quicker than downloading and converting over the network.

My config file looks like this:

-f bestvideo+bestaudio
-o %(title)s.%(ext)s`
--exec 'mv {} /media/nas/Videos/Youtube'

I run youtube-dl https://www.youtube.com/channel/UCboMX_UNgaPBsUOIgasn3-Q/videos from Directory A but is there a way I can get it to check if the -o file matches any file in Directory B before downloading (and if there does, skip the video). which it does perfectly if I ran the command from Directory B?

Thank you.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 26, 2016

Not possible. --download-archive should be used instead in such cases.

@dstftw dstftw closed this Oct 26, 2016
@jcandresen
Copy link
Author

@jcandresen jcandresen commented Oct 26, 2016

@dstftw Hey Sergey,

Can I add current videos to the --download-archive file, other than setting it to download the entire thing in the folder.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 26, 2016

-o '%(extractor)s %(id)s' --get-filename.

@jcandresen
Copy link
Author

@jcandresen jcandresen commented Oct 26, 2016

Alright perfect thank you very much for the help.

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.