Skip to content

ThioJoe/youtube-dl-easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

youtube-dl-easy

Script for running youtube-dl with basic options using PowerShell. Allows automatic download options, as well as manually choosing the formats.

Features

  • Download options for automatic best quality or manually chosen video and audio formats to combine
  • Download option for only audio or video
  • Optional use of command line arguments to override hard-coded variables
  • Support for downloading entire playlists
  • Update the downloader program from within the script

REQUIREMENTS

Screenshot Preview

Script Screenshot

youtube-dl Links

Script / Code Parameters

You may wish/need to change certain parameters in the script code, located in the section called "PARAMETERS YOU MAY NEED/WISH TO CHANGE". This includes the location of the ffmpeg file, the output directory (default is 'outputs' folder in current directory) and filename, and options. See YouTube-dl documentation for more parameters.

Command Line Arguments

The script supports the following command line arguments:

  • -exe <string>: Set the name of the YouTube downloader executable (default: "yt-dlp.exe")
  • -desktop: Place the 'Outputs' folder on the desktop instead of the current directory
  • -options <string>: Manually set additional parameters for the YouTube downloader executable (default: "--no-mtime --add-metadata")
  • -debug: Display potentially helpful info for debugging, including resulting variable values

Running the Script & PowerShell Execution Policy

By default, you may not be able to run any PowerShell scripts unless you change Windows' execution policy.

You can change the execution policy just for the current process by running the following before running the script. Note that if you close the PowerShell window, it will reset the policy.

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process

Alternatively, because this script is signed, instead of "Unrestricted", you could use the "AllSigned" setting instead, like below. Note: If you changed anything inside the script at all, even optional settings, the signature will no longer be valid.

Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope Process

You can run the script by opening a PowerShell window in the folder with the script and entering this (after setting the execution policy if necessary, and don't forget the period):

.\"youtube-dl Easy Script.ps1"

Troubleshooting

If you come across weird errors, the first thing to try should be updating the youtube-dl program. You can do this using option # 7. YouTube-dl is updated pretty frequently, and they usually fix issues quickly when YouTube.com makes breaking changes.

If you encounter issues, you can use the -debug command line argument to display helpful information for troubleshooting.

About

Easy script for running youtube-dl with basic options

Resources

License

Stars

Watchers

Forks

Packages

No packages published