From d36c2e459a74ec67e523539eb98b78b95b01432a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 16 Apr 2025 11:20:43 -0300 Subject: src/content/: Normalize [source,$lang] code blocks --- src/content/blog/2018/12/21/ytdl-subs.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/content/blog/2018/12/21/ytdl-subs.adoc') diff --git a/src/content/blog/2018/12/21/ytdl-subs.adoc b/src/content/blog/2018/12/21/ytdl-subs.adoc index b6540b7..5c4575f 100644 --- a/src/content/blog/2018/12/21/ytdl-subs.adoc +++ b/src/content/blog/2018/12/21/ytdl-subs.adoc @@ -46,7 +46,7 @@ less control on what you share with YouTube and Google. youtube-dl is a command-line tool for downloading videos, from YouTube and {other-sites}[many other sites]: -[source,shell] +[source,sh] ---- $ youtube-dl https://www.youtube.com/watch?v=rnMYZnY3uLA [youtube] rnMYZnY3uLA: Downloading webpage @@ -70,7 +70,7 @@ some interesting flags that we can use: Putting it all together: -[source,shell] +[source,sh] ---- $ youtube-dl "https://www.youtube.com/channel/UClu474HMt895mVxZdlIHXEA" \ --download-archive ~/Nextcloud/cache/youtube-dl-seen.conf \ @@ -90,7 +90,7 @@ download only the last video, since the other 19 were already downloaded. With this basic setup you have a minimal subscription system at work, and you can create some functions to help you manage that: -[source,shell] +[source,sh] ---- #!/bin/sh @@ -128,7 +128,7 @@ export -f download_playlist With these functions, you now can have a subscription fetching script to download the latest videos from your favorite channels: -[source,shell] +[source,sh] ---- #!/bin/sh @@ -180,7 +180,7 @@ You could try putting it in a dedicated git repository, and wrap the script with an autocommit after every run. If you ever had a merge conflict, you'd simply accept all changes and then run the following to tidy up the file: + -[source,shell] +[source,sh] ---- $ uniq youtube-dl-seen.conf > youtube-dl-seen.conf ---- -- cgit v1.2.3