• Stars
    star
    149
  • Rank 247,102 (Top 5 %)
  • Language
    PowerShell
  • License
    MIT License
  • Created about 4 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easy script for running youtube-dl with basic options

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

  • This is NOT a standalone script. It requires the youtube-dl program, which should be put in the same directory as this script. Download YouTube-dl here: https://yt-dl.org/

  • Alternatively, you can use this script with a fork of youtube-dl called "yt-dlp", which has more features and may work better. It is found here: https://github.com/yt-dlp/yt-dlp

  • Some download methods will require ffmpeg to be installed: https://ffmpeg.org/

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.

More Repositories

1

YT-Spammer-Purge

Allows you easily scan for and delete scam comments using several methods.
Python
4,529
star
2

Auto-Synced-Translated-Dubs

Automatically translates the text of a video based on a subtitle file, and also uses AI voice to dub the video, and synced using the subtitle's timings
Python
1,534
star
3

Full-Stack-AI-Meme-Generator

Uses Various AI Service APIs to generate memes with text and images
Python
265
star
4

F-Key-Sender

Lets you send keystrokes for F13 to F24 keys via buttons, including with modifiers
C#
108
star
5

SRT-To-SSML

Converts SRT subtitle file to SSML file with speech durations
Python
85
star
6

YT-Spam-Lists

List of known domains used in scam comments on YouTube
80
star
7

LibWebpToolsGUI

Basic GUI wrappers for certain LibWebp binaries to handle WebP image files
C#
69
star
8

Basic-OpenAI-API-Scripts

Basic scripts for interacting with the OpenAI API.
Python
42
star
9

ThioJoe-Official-Certificates

A list of my self-signed certificates and public keys you can use to verify software, etc actually came from me.
19
star
10

csgoLyrics

Generates a cfg script based on a lyrics file that allows the player to display the lyrics of any song line by line, using only one key bind.
C++
13
star
11

Gmic-Animation-Tools

Tools for creating animations using other normally static image effect tools
C#
13
star
12

BasicStabilityAPI-GUI

A basic GUI for interacting with the Stability AI API for Stable Diffusion 3
C#
12
star
13

D-Opus-Scripts

Scripts for use with Directory Opus
JavaScript
9
star
14

Analyze-Evergreen-YT-Videos-Macro

Determines the current monthly performance of videos of different age ranges.
VBA
8
star
15

Hue-Bulb-Replacer

Python script for easily replacing an old Philips Hue bulb with a new one, and copying Group and Scene data
Python
7
star
16

Basic-Stability-API-Scripts

Basic scripts for interacting with the Stability AI Stable Diffusion API.
Python
3
star
17

FastSigCheck

Simple lightweight tool that uses the WinVerifyTrust Windows API function to check embedded file signatures with as little overhead as possible.
C++
2
star