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

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 "C0DPdy98e4c" url
yt-queue read-field example.ytq.json "C0DPdy98e4c" title

# set the status
yt-queue set-status example.ytq.json "C0DPdy98e4c" 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 20 example.ytq.json

output

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

  • filter returns the matching 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

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


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.13.6.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yt_queue-0.13.6-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file yt_queue-0.13.6.tar.gz.

File metadata

  • Download URL: yt_queue-0.13.6.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yt_queue-0.13.6.tar.gz
Algorithm Hash digest
SHA256 ae2a57858c7af0ad2ebfc1541213fc2d484fb696020e69bc46989ff25b2fa61e
MD5 f9f3b83c07d3adad23cf49fb636cc1cc
BLAKE2b-256 26ae1ff4228297cb9470d3417b73e90145f302ea4662a6419c4662d5d7026fa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_queue-0.13.6.tar.gz:

Publisher: build.yml on pretorh/yt-queue

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yt_queue-0.13.6-py3-none-any.whl.

File metadata

  • Download URL: yt_queue-0.13.6-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yt_queue-0.13.6-py3-none-any.whl
Algorithm Hash digest
SHA256 355641493af8e09d7c7198b9da1da8f97369b367af80435fd7c444ecc9db0a97
MD5 13faa09fce631ab6fa012dd9059be203
BLAKE2b-256 aca79b4081d2f4ea935c1262ba80c83c6b76bb113765d1787fc76f03869c63c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_queue-0.13.6-py3-none-any.whl:

Publisher: build.yml on pretorh/yt-queue

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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