summaryrefslogtreecommitdiff
path: root/src/content/blog/2018/12/21/ytdl-subs.adoc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-16 11:20:43 -0300
committerEuAndreh <eu@euandre.org>2025-04-16 11:20:43 -0300
commitd36c2e459a74ec67e523539eb98b78b95b01432a (patch)
treea7099fbfbdab6a21f59b6efe095bffb40ceae646 /src/content/blog/2018/12/21/ytdl-subs.adoc
parentsrc/content/style.css: Show header on hover only (diff)
downloadeuandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.gz
euandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.xz
src/content/: Normalize [source,$lang] code blocks
Diffstat (limited to 'src/content/blog/2018/12/21/ytdl-subs.adoc')
-rw-r--r--src/content/blog/2018/12/21/ytdl-subs.adoc10
1 files changed, 5 insertions, 5 deletions
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
----