Name | yt-queue JSON |
Version |
0.11.6
JSON |
| download |
home_page | None |
Summary | CLI to keep track of videos in Youtube playlists |
upload_time | 2024-12-07 10:38:33 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
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. |
keywords |
yt-dlp
youtube
|
VCS |
|
bugtrack_url |
|
requirements |
yt-dlp
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# yt-queue
CLI to keep track of videos in Youtube playlists
## cli
See `yt-queue -h` and `yt-queue <subcommand> -h` for details.
Examples:
```sh
# 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:
```shell
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/...`
Raw data
{
"_id": null,
"home_page": null,
"name": "yt-queue",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "yt-dlp, YouTube",
"author": null,
"author_email": "Hendri Pretorius <pretorh@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/26/3a/b08261edf034d230b7b7e2c640cbc066c4a0225f258a48078dc18151cee0/yt_queue-0.11.6.tar.gz",
"platform": null,
"description": "# yt-queue\nCLI to keep track of videos in Youtube playlists\n\n## cli\n\nSee `yt-queue -h` and `yt-queue <subcommand> -h` for details.\n\nExamples:\n\n```sh\n# create a new file\nyt-queue create example.ytq.json \"https://www.youtube.com/playlist?list=PL0pg4HdU1lNMtRzycn3wbKyfQO5vQZja9\"\n\n# refresh a file, only if it wasnt recently updated\nyt-queue refresh example.ytq.json --only-if-older=1day\n\n# get the \"new\" items\nyt-queue filter --no-status example.ytq.json\n\n# read the values of a video from the file\nyt-queue read-field example.ytq.json \"BaW_jenozKc\" url\nyt-queue read-field example.ytq.json \"BaW_jenozKc\" title\n\n# set the status\nyt-queue set-status example.ytq.json \"BaW_jenozKc\" some-text-status\nyt-queue filter --status=some-text-status example.ytq.json\n\n# more filter options\nyt-queue filter --title \"test video\" example.ytq.json\nyt-queue filter --min-duration 3 example.ytq.json\nyt-queue filter --max-duration 11 example.ytq.json\n```\n\n### output\n\nMost cli subcommands' output (`stdout`) is parsable. `stderr` is used for logging:\n\n- `filter` returns the matching video ids, 1 per line\n- `read-field` returns the value of the field for the given video id\n\nOther subcommands output should not be parsed - they contain either progress or verbose logging (including\nfrom `yt-dlp`)\n\n## development\n\nsetup (or recreate) environment with `source dev/init.sh`\n\nor manually:\n\n```shell\npython3 -m venv .env\nsource .env/bin/activate\npip install --editable .\npip install '.[dev]'\n```\n\nother dependencies: `shellcheck`\n\ntests: `./check.sh`\n\ntest the built packages: `./dist-check.sh dist/...`\n",
"bugtrack_url": null,
"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. ",
"summary": "CLI to keep track of videos in Youtube playlists",
"version": "0.11.6",
"project_urls": {
"Bug Tracker": "https://github.com/pretorh/yt-queue/issues",
"Homepage": "https://github.com/pretorh/yt-queue"
},
"split_keywords": [
"yt-dlp",
" youtube"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4b02b7df7af6029fd8bf169d53e1ae7850b9b9d8852c0ba9aded6b77ae899321",
"md5": "3b033d1509037ab03c5dea9cc00a1820",
"sha256": "de4988b022bf2016a7e3ff106fffb8bc98bbe4dda6f9bef91fac2889dff76eb3"
},
"downloads": -1,
"filename": "yt_queue-0.11.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b033d1509037ab03c5dea9cc00a1820",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 16584,
"upload_time": "2024-12-07T10:38:32",
"upload_time_iso_8601": "2024-12-07T10:38:32.186881Z",
"url": "https://files.pythonhosted.org/packages/4b/02/b7df7af6029fd8bf169d53e1ae7850b9b9d8852c0ba9aded6b77ae899321/yt_queue-0.11.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "263ab08261edf034d230b7b7e2c640cbc066c4a0225f258a48078dc18151cee0",
"md5": "f017825c2451a28236383917d609a636",
"sha256": "91f2818513d62c5e3acc1a7d530dd0b5984eb3612bf0b837283c33d84f0d3b0c"
},
"downloads": -1,
"filename": "yt_queue-0.11.6.tar.gz",
"has_sig": false,
"md5_digest": "f017825c2451a28236383917d609a636",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 12259,
"upload_time": "2024-12-07T10:38:33",
"upload_time_iso_8601": "2024-12-07T10:38:33.751531Z",
"url": "https://files.pythonhosted.org/packages/26/3a/b08261edf034d230b7b7e2c640cbc066c4a0225f258a48078dc18151cee0/yt_queue-0.11.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-07 10:38:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pretorh",
"github_project": "yt-queue",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "yt-dlp",
"specs": [
[
"==",
"2024.12.03"
]
]
}
],
"lcname": "yt-queue"
}