download aliases

This commit is contained in:
jbannon 2022-07-23 05:24:15 +00:00
parent 420dd11d13
commit c1f817b07f

View file

@ -81,11 +81,12 @@ john_smith_channel:
overrides: overrides:
tv_show_name: "John Smith Vlogs" tv_show_name: "John Smith Vlogs"
``` ```
The download can be performed using: The download can now be performed using:
```shell ```shell
ytdl-sub sub subscription.yaml ytdl-sub sub subscriptions.yaml
``` ```
This method makes it easy to pull new videos from channels or playlists. This method makes it easy to pull new videos from channels or playlists, or
experiment with new configurations.
### One-time Download ### One-time Download
There are things we will only want to download once and never again. Anything There are things we will only want to download once and never again. Anything
@ -98,6 +99,23 @@ ytdl-sub dl \
--overrides.tv_show_name "John Smith Vlogs" --overrides.tv_show_name "John Smith Vlogs"
``` ```
#### Download Aliases
In the `config.yaml`, we can define alias to make `dl` commands shorter.
```yaml
configuration:
dl_aliases:
tv: "--preset yt_channel_as_tv"
channel: "--youtube.channel_url"
name: "--overrides.tv_show_name"
```
The above command can now be defined as
```shell
ytdl-sub dl \
--tv \
--channel "https://youtube.com/channel/UCsvn_Po0SmunchJYtttWpOxMg" \
--name "John Smith Vlogs"
```
### Output ### Output
After `ytdl-sub` runs, the end result will download and format the channel After `ytdl-sub` runs, the end result will download and format the channel
files into something ready to be consumed by your favorite media player or files into something ready to be consumed by your favorite media player or