From 41e3aedb3f365cfb3ac2c03d3cda5cf406a1a9e4 Mon Sep 17 00:00:00 2001 From: Tom O'Hara Date: Wed, 1 Jan 2025 23:36:34 -0600 Subject: [PATCH] adds youtube-transcript-alt --- tomohara-proper-aliases.bash | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tomohara-proper-aliases.bash b/tomohara-proper-aliases.bash index 9bd27485..3cb2dd12 100755 --- a/tomohara-proper-aliases.bash +++ b/tomohara-proper-aliases.bash @@ -428,6 +428,14 @@ function youtube-transcript { local file="$2" alias-python -m mezcla.examples.youtube_transcript "$url" > "$file" } +# youtube-transcript-alt(): workaround for silly bash problem: +# $ youtube-transcript 'https://www.youtube.com/watch?v=gcgMyRfE8a4&t=247s' +# bash: : No such file or directory +function youtube-transcript-alt { + local url="$1" + local file="$2" + python3 $(which youtube_transcript.py) "$url" > "$file" +} #............................................................................... # System stuff