add youtube downloader script

Amolith created

Change summary

dot_local/bin/youtube | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Detailed changes

dot_local/bin/youtube 🔗

@@ -0,0 +1,38 @@
+#!/usr/bin/env sh
+
+mkdir -p "$HOME/Bulk/Media/YouTube/.archives"
+cd "$HOME/Bulk/Media/YouTube" || exit 1
+
+dl () {
+    youtube-dl --download-archive .archives/"$1".txt -f     \
+        'bestvideo[height<=2160]+bestaudio' --dateafter 20230101\
+        --write-sub --write-auto-sub --sub-format srt/best      \
+        --sub-lang en --embed-subs                              \
+        -o "%(uploader)s/%(upload_date)s - %(title)s (%(duration)s).%(ext)s" \
+        --playlist-end 50 "$2"
+    sleep 5
+}
+
+dl  andrewhuang        https://www.youtube.com/user/songstowearpantsto
+dl  avikaplan          https://www.youtube.com/user/AviKaplanMusic
+dl  brandonacker       https://www.youtube.com/user/brandonacker
+dl  danielthrasher     https://www.youtube.com/user/muffinman3000
+dl  internethistorian  https://www.youtube.com/channel/UCR1D15p_vdP3HkrH8wgjQRw
+dl  jameshoffmann      https://www.youtube.com/channel/UCMb0O2CdPBNi-QqPk5T3gsQ
+dl  jamesveitch        https://www.youtube.com/user/james948
+dl  jimbrowning        https://www.youtube.com/channel/UCBNG0osIBAprVcZZ3ic84vw
+dl  krazam             https://www.youtube.com/channel/UCgBVkKoOAr3ajSdFFLp13_A
+dl  lastweektonight    https://www.youtube.com/user/LastWeekTonight
+dl  linustechtips      https://www.youtube.com/user/LinusTechTips
+dl  logosbynick        https://www.youtube.com/channel/UCEQXp_fcqwPcqrzNtWJ1w9w
+dl  loliconics         https://www.youtube.com/channel/UCmc7E8D4Fnf2_JXfXpH_b5w
+dl  lucasbrar          https://www.youtube.com/user/etherscapes
+dl  michaelreeves      https://www.youtube.com/channel/UCtHaxi4GTYDpJgMSGy7AeSw
+dl  ordinarythings     https://www.youtube.com/@OrdinaryThings
+dl  pewdiepie          https://www.youtube.com/user/PewDiePie
+dl  robscallon         https://www.youtube.com/user/robs70986987
+dl  setheverman        https://www.youtube.com/user/SethEverman
+dl  timminchin         https://www.youtube.com/user/timminchin
+dl  vsauce             https://www.youtube.com/user/Vsauce
+
+notify-send "Downloads finished" "Check the YouTube folder for new videos"