← 一覧
@lapius/ytdlpdownloaderyd
GitHubnpm
<div align="center"> <p align="center"><b>English</b> | <a href="README.ja.md">日本語</a></p> <h1 align="center">yt-dlp Downloader</h1> <h3 align="center">Download video, audio and images from an fzf menu.</h3> <p align="center">A launcher (<code>yd</code>) that drives <a href="https://github.com/yt-dlp/yt-dlp">yt-dlp</a> from an fzf menu. Paste a URL, pick the format, quality, range and options, check the confirmation screen, and start the download.</p> <p align="center"> <a href="https://www.npmjs.com/package/@lapius/ytdlpdownloader"><img alt="npm" src="https://img.shields.io/npm/v/@lapius/ytdlpdownloader?style=flat-square&color=cb3837&logo=npm"></a> <a href="https://github.com/Lapius7/ytdlpdownloader/actions/workflows/release.yml"><img alt="Release workflow" src="https://img.shields.io/github/actions/workflow/status/Lapius7/ytdlpdownloader/release.yml?label=release&style=flat-square&logo=githubactions&logoColor=white"></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/github/license/Lapius7/ytdlpdownloader?style=flat-square&color=97ca00"></a> <a href="https://github.com/Lapius7/ytdlpdownloader/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/Lapius7/ytdlpdownloader?style=flat-square&color=e3b341&logo=github"></a> <a href="https://github.com/Lapius7/ytdlpdownloader/commits/main"><img alt="Last commit" src="https://img.shields.io/github/last-commit/Lapius7/ytdlpdownloader?style=flat-square&color=3b82f6"></a> </p> <p align="center"> <a href="#quick-start">Quick start</a> · <a href="#usage">Usage</a> · <a href="#requirements">Requirements</a> · <a href="#release">Release</a> </p> </div>

Overview

Works with YouTube and the other sites yt-dlp supports (Niconico, X, TikTok, Instagram, Twitch and thousands more), plus image sites supported by gallery-dl.

Quick start

pnpm add -g @lapius/ytdlpdownloader     # the command is yd

It can also be installed from lapacks. Then run yd.

Requirements

Requiredzsh, yt-dlp, fzf (0.63 or later), ffmpeg, jq
Used if presentgallery-dl (image posts), chafa (thumbnail preview), fd, eza

Checked on Linux and WSL; macOS is supported on a best-effort basis (not verified for this README). If something is missing, the install hint is shown at startup.

Usage

yd                      # open the menu
yd <URL>                # pass a URL, then choose video / audio / image
yd video [URL]          # video (mp4 / mkv / webm)
yd audio [URL]          # audio (mp3 / m4a / opus / flac / wav)
yd image [URL]          # thumbnails and image posts (switches to gallery-dl automatically)
yd batch [URL...|file]  # several URLs at once
yd history              # history of saved files
yd update               # update yt-dlp
yd --version

Keys: ↑↓ / j k to move, Enter to confirm, Esc to go back, Ctrl+C to abort a download. Without a URL, the URL in the clipboard is used.

Options (multi-select with Space)

TypeChoices
VideoEmbed or save the thumbnail, subtitles (embedded, separate, auto-generated), chapters, metadata, SponsorBlock
AudioEmbed or save the cover image, metadata, chapters, SponsorBlock
ImageAll thumbnail sizes, use gallery-dl
CommonSave the description, skip already downloaded files (archive), speed limit, cookies

The options you pick are remembered per type and become the defaults next time. After setup, a confirmation screen (title, format, range, options, save location) lets you fix each item or copy the command that will run.

Sites that need a login

Choose "Cookie" in the options, or the menu shown on failure, and select a cookies.txt file or a browser (Firefox, Chrome and others). On WSL, cookies of Chrome/Edge on the Windows side cannot be read, so use a Firefox profile or cookies.txt.

Files

Release

Pushing a v* tag runs GitHub Actions (.github/workflows/release.yml), which publishes to npm with npm/build.mjs (it authenticates with a Trusted Publisher, so no token is needed). To check locally: node npm/build.mjs 0.0.0-dev --pack.

[!NOTE] The README images are drawn from the menu text and are not screenshots of yd. Behavior described here was carried over from the previous README and has not been re-run for this rewrite.

License

MIT