Skip to main content

This repository contains a stash plugin package for yt-dlp.

See yt-dlp plugins for more details.

Installation

Requires yt-dlp as well as stashapp-tools.

You can install this package with pip:

python3 -m pip install -U https://github.com/schmoaaaaah/yt-dlp-stash/archive/master.zip
python3 -m pip install yt-dlp-stash

See installing yt-dlp plugins for the other methods this plugin package can be installed.

Usage

To use this plugin, you must have a stash server running and add following to your yt-dlp command:

--use-postprocessor Stash:scheme="http"\;host="stash"\;port="9999"\;apikey="example_key"

The apikey is optional and can be left out if you dont have authentication enabled.

--use-postprocessor Stash:scheme="http"\;host="stash"\;port="9999"

Variables

name default required description
scheme http x scheme at which stash is available. either http or https
host localhost x fqdn of the stash instance
port 9999 x port on which stash is accessable
apikey api key which should be used
sessioncookie sessioncookie which should be used
searchpathoverride override the relative path for the search in stash
scrapemethod yt_dlp --- postprocessor scraping method, either yt_dlp or stash

apikey & sessioncookie

if api key and sessioncookie are provided api key is preferred.

searchpathoverride

when the start of the absolute media path equals searchpathoverride the searchpathoverride is removed from the absolute media path and the rest of the path is used to search in stash.

searchpathoverride = /media/series
media_path = /media/series/series_name/season_1/episode_1.mkv
searchpath = /series_name/season_1/episode_1.mkv

when the start of the absolute media path does not equal searchpathoverride it is used as a prefix for the search in stash.

searchpathoverride = /media/series
media_path = /series_name/season_1/episode_1.mkv
searchpath = /media/series/series_name/season_1/episode_1.mkv

when the searchpathoverride is not set the absolute media path is used to search in stash.

scrapemethod

With yt_dlp the postprocessor uses data directly from yt-dlp. Using stash triggers Stash's GraphQL to scrape the URL after import. (Note: you must install any CommunityScrapers you plan to use within Stash first for this to work properly)

Development

See the Plugin Development section of the yt-dlp wiki.

Metadata

Release files for yt-dlp-stash 2.1.0

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-stash 2.1.0
File Size Uploaded Provenance Actions
yt_dlp_stash-2.1.0.tar.gz 42.6 kB Without provenance Details for yt_dlp_stash-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yt-dlp-stash 2.1.0
File Interpreter ABI Platform Actions
yt_dlp_stash-2.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for yt_dlp_stash-2.1.0-py2.py3-none-any.whl

Total release size: 72.6 kB

Release files / yt_dlp_stash-2.1.0.tar.gz

Download URL yt_dlp_stash-2.1.0.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
61dc9160a360dfe92dee4d6b83a4ae378e1c7c1f322057e3bf290b4ad3895658
BLAKE2b-256 checksum
How to use checksums
8bc05510929372e3240a983ab7bf6f34b9ddad3aac0f0ef8709c59f6172a8260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / yt_dlp_stash-2.1.0-py2.py3-none-any.whl

Download URL yt_dlp_stash-2.1.0-py2.py3-none-any.whl
Size 30.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d75296a1fbea64951c2004828b68f41b7da8be29981c31dc495b44ce790dba6e
BLAKE2b-256 checksum
How to use checksums
c26af0dad76b3448c7e0d653670b28a315801555bff464c8cd9ebf355b5f8d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for yt-dlp-stash 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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