Giter Site home page Giter Site logo

youtube-dl.ps1's Introduction

youtube-dl.ps1

youtube-dl.ps1 is an interactive PowerShell wrapper script for youtube-dl. It was initially born of a desire to be able to easily switch between preset destination folders for youtube-dl, but has since increased in functionality somewhat.

Getting started

As with many custom PowerShell scripts, you'll need to:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

The script can be launched via Run with PowerShell on its context menu, via a terminal or by a shortcut to this target (recommended):

powershell -NoProfile -ExecutionPolicy Bypass -File "C:\path\to\youtube-dl.ps1"

A config.json file with default settings will be generated alongside the script upon first run. If youtube-dl isn't found on your system, the script will offer to automatically download it for you.

Note: FFmpeg may be required for some operations, such as audio extraction and merging formats. You'll need to download that manually for the time being.

Switching folders

Populate the SaveLocations array in config.json with preset destination folders you'd like to use, with the first one being your preferred default. You can refer to config.json.example to see what this should look like. Save the config file and re-run the script. You can now switch between folders using their corresponding numbers at the prompt. To start a download, just paste the URL and hit Enter.

Watch clipboard mode

This example demonstrates "watch clipboard" mode, where the script will watch your clipboard for changes and attempt to start a download when a URL is found. Each youtube-dl process is launched concurrently. This is useful for starting many downloads at once. You can combine this mode with sounds (s) to hear audible feedback when downloads start and finish.

Saving settings

To save your default settings (e.g. toggle states) to your config file, type d.

youtube-dl.ps1's People

Contributors

lukejjh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

luzkenin pq-lukeh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.