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.8.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.8-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_queue-0.13.8.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.8.tar.gz
Algorithm Hash digest
SHA256 fa93f54b6de7ce5e08e7c2bf24fa30c8c5f6a5224fc9962a23461063ec658238
MD5 2d96fa59e6c7e5bba195c9ad8483a205
BLAKE2b-256 3cd1c9f3c1b15319e12db39b8574ed2fcb781b2eeda9d65a4f4b9ef7d5a0fe66

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_queue-0.13.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: yt_queue-0.13.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7d8387bcd24c87bd4e2ac490ebb70ef87177a926e0b343b0abf0e78c5a7ef174
MD5 1762348d68a0077cd1737788b40ac0cd
BLAKE2b-256 e1161390af65e0c3f6059eca677c5b5cc574181caa90c1ca1fb3d9e92aaccb28

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_queue-0.13.8-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