Skip to main content

Official repository: https://github.com/grqz/yt-dlp-invidious

yt-dlp-invidious

This repository contains a plugin for yt-dlp. See yt-dlp plugins for more details.
The plugin adds native support for Invidious and allows youtube downloads to fallback to Invidious on the error 'Sign in to confirm you’re not a bot. This helps protect our community. Learn more'.
The code is based on ytdl-org/youtube-dl#31426.

Installation

Requires yt-dlp 2023.01.02 or above.

pip/pipx

If yt-dlp is installed through pip or pipx, you can install the plugin with the following:

pipx inject yt-dlp yt-dlp-invidious

or

python3 -m pip install -U yt-dlp-invidious

Manual install

  1. Download the latest release zip from releases

  2. Add the zip to one of the yt-dlp plugin locations

    • User Plugins

      • ${XDG_CONFIG_HOME}/yt-dlp/plugins (recommended on Linux/MacOS)
      • ~/.yt-dlp/plugins/
      • ${APPDATA}/yt-dlp/plugins/ (recommended on Windows)
    • System Plugins

      • /etc/yt-dlp/plugins/
      • /etc/yt-dlp-plugins/
    • Executable location

      • Binary: where <root-dir>/yt-dlp.exe, <root-dir>/yt-dlp-plugins/

For more locations and methods, see installing yt-dlp plugins

Usage

Auto-fallback mode (recommended)

Just use yt-dlp as normal, the plugin will automatically fall back to invidious when YoutubeIE or YoutubePlaylistIE reported 'Sign in to confirm you’re not a bot. This helps protect our community. Learn more'.

Force override mode

Pass --ies "Invidious,InvidiousPlaylist" to yt-dlp. The plugin automatically matches the video id/playlist id so you can just pass a video id/playlist id. For a single video id, use invidious:<id> instead of <id> to force yt-dlp to use Invidious.

Extractor arguments

Use something like --extractor-args "invidious:max_retries=3;retry_interval=3.45" --extractor-args "invidiousplaylist:preferred_instance=inv.nadeko.net" to pass multiple extractor arguments in a single run.
See EXTRACTOR ARGUMENTS for more details.

invidious

  • max_retries: maximum retry times. (default: 5)
    e.g. infinite (unrecommended), 3.
  • retry_interval: interval between retries (in seconds). (default: 5)
    e.g. 3.45.
  • preferred_instance: netloc of preferred instance (default: INSTANCES[0])
    e.g. inv.nadeko.net.

invidiousplaylist

  • preferred_instance: netloc of preferred instance (default: INSTANCES[0])
    e.g. inv.nadeko.net.

Release files for yt-dlp-invidious 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yt-dlp-invidious 0.1.1
File Size Uploaded
yt_dlp_invidious-0.1.1.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yt-dlp-invidious 0.1.1
File Interpreter ABI Platform
yt_dlp_invidious-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / yt_dlp_invidious-0.1.1.tar.gz

Download URL yt_dlp_invidious-0.1.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dff47ca20ee63067a4b587fc3c1612b171a95cdf56a200ede0d9d8b68fce24a9
BLAKE2b-256 checksum
How to use checksums
4fce34bd4a1d80ec36e4ee8434e67e142f33709a883ab27e949a78b9d341e21b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / yt_dlp_invidious-0.1.1-py3-none-any.whl

Download URL yt_dlp_invidious-0.1.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f1559597c3822973396b4ebc98f4f7693cfd5f1d191080b8be77319cd45e077
BLAKE2b-256 checksum
How to use checksums
c46fe37d354a73367d436846c96763b94e0bcd8ecf74fdecd417c10a4e8b20c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page