From cad2856814a3e067d406b30cd1b4b73493b112e4 Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 5 Apr 2023 12:00:09 -0400 Subject: [PATCH] add youtube downloader script --- dot_local/bin/youtube | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 dot_local/bin/youtube diff --git a/dot_local/bin/youtube b/dot_local/bin/youtube new file mode 100644 index 0000000000000000000000000000000000000000..5c847ec30b0249df3b640f352f289152e0c86964 --- /dev/null +++ b/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"