Update aliases
This commit is contained in:
parent
f70bc8b9cd
commit
10c6e8e06c
29
aliases
29
aliases
|
@ -365,7 +365,7 @@ function my_transcribe_video() {
|
|||
# catches most words. Small and medium can do better word detection at
|
||||
# times, but suffer from bad punctuation. Medium is particularly bad and
|
||||
# not adding commas and periods.
|
||||
transcribe-video "$file" "$output" base tiny
|
||||
transcribe-video "$file" "$output" tiny base
|
||||
}
|
||||
|
||||
function my_transcribe_video_all_models() {
|
||||
|
@ -517,9 +517,11 @@ download_youtube_playlist_list() {
|
|||
}
|
||||
|
||||
download_youtube_uploads_list() {
|
||||
local url="$1"
|
||||
local output_name="$2"
|
||||
shift 2
|
||||
local include_descriptions="$1"
|
||||
|
||||
local url="$2"
|
||||
local output_name="$3"
|
||||
shift 3
|
||||
local opts="$@"
|
||||
|
||||
if [[ $url == "" || $output_name == "" ]]; then
|
||||
|
@ -527,9 +529,16 @@ download_youtube_uploads_list() {
|
|||
return
|
||||
fi
|
||||
|
||||
printf "${BOLD}Downloading Youtube uploads list\n\n${NORMAL}"
|
||||
local cmd=""
|
||||
|
||||
if [[ $include_descriptions == "1" ]]; then
|
||||
printf "${BOLD}Downloading Youtube uploads list with descriptions\n\n${NORMAL}"
|
||||
cmd="yt-dlp.exe --ignore-errors -O \"@@@ %(video_autonumber)s-%(upload_date>%Y-%m-%d)s--%(title)s--%(id)s\" --skip-download --get-description $opts $url"
|
||||
else
|
||||
printf "${BOLD}Downloading Youtube uploads list\n\n${NORMAL}"
|
||||
cmd="yt-dlp.exe --ignore-errors -O \"%(video_autonumber)s-%(upload_date>%Y-%m-%d)s--%(title)s--%(id)s\" --skip-download $opts $url"
|
||||
fi
|
||||
|
||||
local cmd="yt-dlp.exe --ignore-errors -O \"%(video_autonumber)s-%(upload_date>%Y-%m-%d)s--%(title)s--%(id)s\" --skip-download $opts $url"
|
||||
eval $cmd 1>"${output_name}.txt" # Need to eval in order to preserve the quotes wrapping the filename format string.
|
||||
|
||||
printf "${BOLD}Finished downloading the upload list\n${NORMAL}"
|
||||
|
@ -918,7 +927,8 @@ download_from_m3u8() {
|
|||
#-------------------------------------------------
|
||||
# YouTube Vid DL
|
||||
#-------------------------------------------------
|
||||
alias yt-list='download_youtube_uploads_list '
|
||||
alias yt-list='download_youtube_uploads_list 0 '
|
||||
alias yt-list-desc='download_youtube_uploads_list 1 '
|
||||
|
||||
alias yt='download_youtube_vid "" $SHORTNAME_OFF $TRANSCRIBE_OFF'
|
||||
alias yt-shortname='download_youtube_vid "" $SHORTNAME_ON $TRANSCRIBE_OFF'
|
||||
|
@ -1126,7 +1136,7 @@ alias gaup='git add --update -p'
|
|||
alias gb='git branch -v'
|
||||
alias gbb='git bisect bad'
|
||||
alias gbd='git branch -D'
|
||||
alias gbdr='git branch -Dr'
|
||||
alias gbdr='git branch -Dr' # Delete a remote tracking branch; useful when the remote no longer exists and branch pruning isn't removing the lingering tracking branches.
|
||||
alias gbg='git bisect good'
|
||||
alias gbl='git branch --all'
|
||||
alias gblm='git blame -wMC'
|
||||
|
@ -1227,10 +1237,11 @@ alias gsp3='git stash pop stash@{3}'
|
|||
alias gsp4='git stash pop stash@{4}'
|
||||
alias gsp5='git stash pop stash@{6}'
|
||||
alias gsp6='git stash pop stash@{7}'
|
||||
alias gt='git tag -s' # Signed
|
||||
alias gt='git tag' # Unsigned
|
||||
alias gta='git tag -a'
|
||||
alias gtd='git tag -d'
|
||||
alias gtl='git tag -l'
|
||||
alias gts='git tag -s' # Signed
|
||||
alias gx='git reset --hard'
|
||||
alias gxx='git reset --hard HEAD~1'
|
||||
alias gxom='git reset --hard origin/master'
|
||||
|
|
Loading…
Reference in New Issue
Block a user