Skip to main content

CLI to keep track of videos in Youtube playlists

Project description

yt-queue

CLI to keep track of videos in Youtube playlists

cli

tl;dr:

yt-queue create <name.ytq.json> <url>
yt-queue refresh <name.ytq.json> --only-if-older=1day
yt-queue filter --no-status <name.ytq.json>
yt-queue read-field <name.ytq.json> <video-id> url
yt-queue read-field <name.ytq.json> <video-id> title
yt-queue set-status <name.ytq.json> <video-id> <status>
yt-queue filter --status=<status> <name.ytq.json>

more filter options:

yt-queue filter --title "test video" <name.ytq.json>
yt-queue filter --min-duration 3 <name.ytq.json>
yt-queue filter --max-duration 11 <name.ytq.json>

See yt-queue -h or yt-queue <subcommand> -h for details.

output

Most cli subcommands' output (stdout) is parsable. stderr is used for logging:

  • get-no-status and get-status returns the video ids, 1 per line
  • read-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

python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
# or
pip install --editable .
pip install '.[dev]'

other dependencies: shellcheck

tests: ./check.sh

test the built packages: ./dist-check.sh dist/...

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

yt-queue-0.7.1.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

yt_queue-0.7.1-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page