No project description provided
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yt_dlp_stash-2.1.0.tar.gz.
File metadata
- Download URL: yt_dlp_stash-2.1.0.tar.gz
- Upload date:
- Size: 42.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61dc9160a360dfe92dee4d6b83a4ae378e1c7c1f322057e3bf290b4ad3895658
|
|
| MD5 |
b92e727eeb257473706e1a674cd8cf20
|
|
| BLAKE2b-256 |
8bc05510929372e3240a983ab7bf6f34b9ddad3aac0f0ef8709c59f6172a8260
|
File details
Details for the file yt_dlp_stash-2.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: yt_dlp_stash-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d75296a1fbea64951c2004828b68f41b7da8be29981c31dc495b44ce790dba6e
|
|
| MD5 |
af9731ecddfb8a9d98734f97c921f315
|
|
| BLAKE2b-256 |
c26af0dad76b3448c7e0d653670b28a315801555bff464c8cd9ebf355b5f8d5c
|