yt-dlp Config File Setup

yt-dlp allows the use of a configuration file to run the download script without the need to input all of the settings for each download. An additional benefit of a configuration file is the use of batch files to aid in the download of a large number of videos. The config.txt file should be located at  "C:\BHL\Utilities\youtube-dl", but can be located wherever one would like. Below is a sample of what the config.txt file should look like in the event the file is missing.

# File containing URLs to download ("-" for stdin), one URL per line. Lines starting with "#", ";" or "]" are considered as comments and ignored

--batch-file "[full file path to batch.txt]"


# Save all videos here

--paths "[full file path to output directory]"

--output %(title)s.%(ext)s


# Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames

--restrict-filenames


#Force filenames to be Windows-compatible

--windows-filenames  


#Write video description to a .description file

--write-description 


# Write video metadata to a .info.json file

--write-info-json 


#Write playlist metadata in addition to the video metadata when using --write-info-json --write-description etc. (default)

--write-playlist-metafiles


# Do not overwrite existing output files

--no-overwrites


#Write thumbnail image to disk

--write-thumbnail   


# Output progress bar as new lines

--newline  


#Print various debugging information

--verbose


#Video format code

--format bestvideo*+bestaudio/best


Write subtitle file

--write-subs 


#Specify ffmpeg audio quality to use

--audio-quality QUALITY  

 

# Download only the video, if the URL refers to a video AND a playlist

--yes-playlist