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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_queue-0.13.7.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.7.tar.gz
Algorithm Hash digest
SHA256 c2e9fdc2ed720c6ece909b06fd372ab102816d3cff18b398aeb5696c1baae3b1
MD5 61857003159b93011825ab2f992a22e7
BLAKE2b-256 4235f3ee23602bfc4e487acbfc3a391d9d0cfbd11b4593c2cdd95df89e53e7a1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yt_queue-0.13.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 38f2eecb6642cce312c248ec730e46cb629af3870706359d9f1db2910743190f
MD5 f5c4d2cd86c1d820ed5bee288ea6a99b
BLAKE2b-256 1399b1db485cf197aa5b0933c6b4c3f6aeaa63d6e8b19880a6901e85de018339

See more details on using hashes here.

Provenance

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