Vikas
Vikas

Reputation: 129

youtube-dl: how to skip already downloaded files in python script?

Via Python script I want to configure youtube-dl to not download already downloaded files.

I understand rejecttitle option is available to achieve this goal.

I need an example on how to pass an array or dictionary of files already downloaded to youtubedl via rejecttitle.

Upvotes: 1

Views: 9880

Answers (1)

anon
anon

Reputation:

Since version 2015.03.28, youtube-dl does this automatically (when resuming is possible). Therefore, simply updating your installation of youtube-dl should suffice.

With a prior version, you can set the continuedl option in your invocation.

You may also be interested in the download_archive option, which allows you to keep a list of all downloads you've ever run and check this list instead looking whether the file exists.

Upvotes: 7

Related Questions