ytdl-sub/tests/unit
Jesse Bannon 970c74ba45
[FEATURE] inspect subcommand (#1407)
Subscription file syntax is designed to minimize boiler-plate when authoring new subscriptions.
You can now unpack any subscription using the ``inspect`` sub-command to see its boiler-plate *preset format*.

```
ytdl-sub inspect --config /path/to/config.yaml --match "BBC News" /path/to/subscriptions.yaml
```

This can be utilized for numerous purposes including:

* Ensuring your custom preset is getting applied correctly.
* Figuring out which variables set things like file names, metadata, etc.
* Understanding how subscription syntax translates to preset representation.

The default ``--level`` of inspect will fill in defined variables. Using ``--level original`` will present the subscription's raw layout with no fill.
2026-04-13 10:10:58 -07:00
..
cli [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
config [FEATURE] inspect subcommand (#1407) 2026-04-13 10:10:58 -07:00
docgen [DOCS] Overhaul configuration file getting started guide (#1172) 2026-03-09 10:18:50 -07:00
entries [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
main [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
plugins [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
prebuilt_presets [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
script [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
utils [DEV] Linter: Use ruff over black and isort (#1445) 2026-03-09 11:39:01 -07:00
validators [DEV] Make inspect resolution more human readable (#1451) 2026-03-13 16:27:56 -07:00
__init__.py entry 100% test coverage 2022-03-30 16:48:04 +00:00