From c1f817b07fe4d9535fb16e0b68da4a6f87cf75e9 Mon Sep 17 00:00:00 2001 From: jbannon Date: Sat, 23 Jul 2022 05:24:15 +0000 Subject: [PATCH] download aliases --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4a4f1703..1e8bb72d 100644 --- a/README.md +++ b/README.md @@ -81,11 +81,12 @@ john_smith_channel: overrides: tv_show_name: "John Smith Vlogs" ``` -The download can be performed using: +The download can now be performed using: ```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 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" ``` +#### 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 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