dlvh
dlvh (download video here) is a wrapper for yt-dlp that allows you to quickly download videos in a folder according to predefined nested local rules.
Install
pip install dlvh
How to use
Use dlvh *URL* to download to current folder, dlvh -p *preset* *URL* to download to a preset, and dlvh -n *preset* (in the target directory) to define new preset.
You can have dlvh configuration files on each level of the directory tree. These files use a simple yaml structure:
options:
download-archive: .ytdlarchive # Relative to the folder where the download happens
cookies: ^/yt_cookies.txt # Relative to THIS configuration file, even in subfolders
output: '"%(id)s.%(title)s.%(ext)s"' # Careful with quoting strings!
merge-output-format: mkv
flags:
- restrict-filenames
- prefer-free-formats
Let's say you have the following folder structure:
├── audio
│ ├── dlvh.yml # `extract-audio`
│ ├── unsettling_screaming
│ └── calm_nature_sounds
└── video
├── dlvh.yml # `embed-thumbnail`, `download-archive: .ytdlarchive`
├── asmr
└── dance_covers
├── dlvh.yml # `download-archive: ^/ytdlarchive`
├── twice
└── redvelvet
When you download something to audio/calm_nature_sounds, the flag extract-audio from its parent folder will be respected.
When you download something to video/asmr, the flag embed-thumbnail and the option download-archive: .ytdlarchive will be respected, meaning a local file video/asmr/.ytdlarchive will be used as archive.
When you download something to videos/dance_covers/twice however, its parent folder's option download-archive: ^/ytdlarchive overwrites this, meaning a common archive file dance_covers/.ytdlarchive will be used for all subfolders.
Metadata
Release files for dlvh 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dlvh-1.0.2.tar.gz | 15.2 kB | Without provenance | Details for dlvh-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dlvh-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for dlvh-1.0.2-py3-none-any.whl |
Total release size: 31.2 kB
Release files / dlvh-1.0.2.tar.gz
| Download URL | dlvh-1.0.2.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad7e14eb96c4a93d8d7949a5cb834138ceb0639fcdcfc847d726da0291b7b483
|
|
BLAKE2b-256 checksum How to use checksums |
891080ca7d7b24c3f1db59adf1367e7759637ea52a56c56259bba5ab77b69df5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / dlvh-1.0.2-py3-none-any.whl
| Download URL | dlvh-1.0.2-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36116e13707b8af5e5d68961075da3739fb222b658e0129c83167ca84273edba
|
|
BLAKE2b-256 checksum How to use checksums |
f3d78c1e0160b897286fbce319bf112715606b0c424c351ec567de23ef43bec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for dlvh 1.0.2
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.