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

Uploaded Source

Built Distribution

yt_queue-0.11.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_queue-0.11.5.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

Hashes for yt_queue-0.11.5.tar.gz
Algorithm Hash digest
SHA256 b0ed8ae6bdc9163e4d83b056c1747493d81c9b0deeea4fb74d779900fd497422
MD5 150f1b7e4d6b45041b8f062a08669bda
BLAKE2b-256 4cdec57e92223419c5487b54413099e3fc23d8ab501af33f1850347c7d02a2ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yt_queue-0.11.5-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

Hashes for yt_queue-0.11.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ea94b41da6045e9f108fb78b85bd9f37eb1a32c2c6f3b3162d55fce2720b5e8a
MD5 9f91261f77b2d573dafae0e9cd757d4a
BLAKE2b-256 56777c1debd6ee3ddd45cea67f6e9c6faa20a7aca8c91d708678b4c851c270e1

See more details on using hashes here.

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