Skip to content

Commit

Permalink
adds youtube-transcript-alt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom O'Hara committed Jan 2, 2025
1 parent 777a7bf commit 41e3aed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tomohara-proper-aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41e3aed

Please sign in to comment.