CLI to keep track of videos in Youtube playlists
Project description
yt-queue
CLI to keep track of videos in Youtube playlists
cli
See yt-queue -h
and yt-queue <subcommand> -h
for details.
Examples:
# create a new file
yt-queue create example.ytq.json "https://www.youtube.com/playlist?list=PL0pg4HdU1lNMtRzycn3wbKyfQO5vQZja9"
# refresh a file, only if it wasnt recently updated
yt-queue refresh example.ytq.json --only-if-older=1day
# get the "new" items
yt-queue filter --no-status example.ytq.json
# read the values of a video from the file
yt-queue read-field example.ytq.json "BaW_jenozKc" url
yt-queue read-field example.ytq.json "BaW_jenozKc" title
# set the status
yt-queue set-status example.ytq.json "BaW_jenozKc" some-text-status
yt-queue filter --status=some-text-status example.ytq.json
# more filter options
yt-queue filter --title "test video" example.ytq.json
yt-queue filter --min-duration 3 example.ytq.json
yt-queue filter --max-duration 11 example.ytq.json
output
Most cli subcommands' output (stdout
) is parsable. stderr
is used for logging:
filter
returns the matching video ids, 1 per lineread-field
returns the value of the field for the given video id
Other subcommands output should not be parsed - they contain either progress or verbose logging (including
from yt-dlp
)
development
setup (or recreate) environment with source dev/init.sh
or manually:
python3 -m venv .env
source .env/bin/activate
pip install --editable .
pip install '.[dev]'
other dependencies: shellcheck
tests: ./check.sh
test the built packages: ./dist-check.sh dist/...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yt_queue-0.11.3.tar.gz
(12.3 kB
view details)
Built Distribution
yt_queue-0.11.3-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file yt_queue-0.11.3.tar.gz
.
File metadata
- Download URL: yt_queue-0.11.3.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d20d4e414026b8a682edab41137e2b1524bdc26bce585b42e488dda4aeaf83 |
|
MD5 | a1d444b4fac43982d179f88075ae95a6 |
|
BLAKE2b-256 | 7af5b5af95de39490ae2765814785c7f929a16f50838423b3ae8938b3ba32420 |
File details
Details for the file yt_queue-0.11.3-py3-none-any.whl
.
File metadata
- Download URL: yt_queue-0.11.3-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bfde02353b3d4f9a38115cd8834504658241f2a35cee1aa0cceb5c26f3e8124 |
|
MD5 | 84fd079c2662dc4bcfbea269238806c7 |
|
BLAKE2b-256 | 4dd5a84db072f3b70f7df9530071361d629132625318be56a034e73793c311af |