Metadata-Version: 2.1
Name: yt-queue
Version: 0.7.1
Summary: CLI to keep track of videos in Youtube playlists
Author-email: Hendri Pretorius <pretorh@gmail.com>
License: MIT License
        
        Copyright (c) 2023 Hendri Pretorius
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/pretorh/yt-queue
Project-URL: Bug Tracker, https://github.com/pretorh/yt-queue/issues
Keywords: yt-dlp,YouTube
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: yt-dlp==2023.11.14
Provides-Extra: dev
Requires-Dist: pylint==3.0.2; extra == "dev"
Requires-Dist: pytest==7.4.3; extra == "dev"

# yt-queue
CLI to keep track of videos in Youtube playlists

## cli

tl;dr:

```sh
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:

```sh
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

```shell
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/...`
