From f99f1da559631df4e1f5649a944e0d871b7c6a86 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 27 Nov 2022 21:08:59 +0100 Subject: [PATCH] allow changing of description, paralellize download --- ...Plastic_Syringes-[ioLtieMWRT8].description | 35 ------------------- downloadDescriptions.sh | 10 +++++- 2 files changed, 9 insertions(+), 36 deletions(-) diff --git a/Adam_Savage_Demos_Hydraulics_with_Cheap_Plastic_Syringes-[ioLtieMWRT8].description b/Adam_Savage_Demos_Hydraulics_with_Cheap_Plastic_Syringes-[ioLtieMWRT8].description index da6bd18..2da6079 100644 --- a/Adam_Savage_Demos_Hydraulics_with_Cheap_Plastic_Syringes-[ioLtieMWRT8].description +++ b/Adam_Savage_Demos_Hydraulics_with_Cheap_Plastic_Syringes-[ioLtieMWRT8].description @@ -2,38 +2,3 @@ Adam shows us how to use cheap plastic syringes to create a simple hydraulics sy 150ml large plastic syringes: https://amzn.to/3IpwTzd Disclaimer: Tested may earn an affiliate commission when you buy through the links here. - -Shot and edited by Joey Fameli - -Join this channel to support Tested and get access to perks: -https://www.youtube.com/channel/UCiDJtJKMICpb9B1qf7qjEOA/join - -Tested Ts, stickers, mugs and more: https://tested-store.com - -Subscribe for more videos (and click the bell for notifications): http://www.youtube.com/subscription_center?add_user=testedcom -Twitter: http://www.twitter.com/testedcom -Facebook: http://www.facebook.com/testedcom -Instagram: https://www.instagram.com/testedcom/ -Discord: https://www.discord.gg/tested -Amazon Storefront: http://www.amazon.com/shop/adamsavagestested -Savage Industries T-shirts: https://cottonbureau.com/stores/savage-merchandising#/shop - -Tested is: -Adam Savage http://www.twitter.com/donttrythis -Norman Chan http://www.twitter.com/nchan -Joey Fameli http://www.joeyfameli.com -Ryan Kiser https://www.instagram.com/ryan.kiser -Josh Self http://www.mrjoshself.com -Jen Schachter http://www.jenschachter.com -Kishore Hari http://www.twitter.com/sciencequiche -Sean Charlesworth http://www.twitter.com/cworthdynamics -Jeremy Williams http://www.twitter.com/jerware -Kayte Sabicer https://www.instagram.com/kaytesabicer -Bill Doran https://twitter.com/chinbeard -Ariel Waldman https://youtube.com/arielwaldman -Darrell Maloney https://www.youtube.com/brokennerd -Kristen Lomasney https://twitter.com/krystynlo - -Intro bumper by Abe Dieckman - -Thanks for watching! \ No newline at end of file diff --git a/downloadDescriptions.sh b/downloadDescriptions.sh index 17c7704..e0abb87 100755 --- a/downloadDescriptions.sh +++ b/downloadDescriptions.sh @@ -1 +1,9 @@ -youtube-dl "https://www.youtube.com/watch?list=PLJtitKU0CAehVwewqUdsYrDqg9Kp1jQvj" --write-description --skip-download --restrict-filenames +#!/usr/bin/env bash + +set -eu + +playlistURL="https://www.youtube.com/watch?list=PLJtitKU0CAehVwewqUdsYrDqg9Kp1jQvj" + +playlistJSON=`yt-dlp "$playlistURL" --flat-playlist -J` +urls=`echo "$playlistJSON" | jq -r '.entries[].url'` +echo "$urls" | xargs -P 20 -I % youtube-dl "%" --write-description --skip-download --restrict-filenames --no-post-overwrite --no-overwrites