Refactoring
This commit is contained in:
parent
f1eb737b06
commit
74f7aa38bc
6
arbit
6
arbit
|
@ -37,8 +37,8 @@ clipboardQuery(){
|
|||
}
|
||||
|
||||
downloadCommand(){
|
||||
#yt-dlp --embed-chapters --embed-metadata --embed-subs -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "$1"
|
||||
yt-dlp -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "$1"
|
||||
yt-dlp --embed-chapters --embed-metadata --embed-subs -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "$1"
|
||||
#yt-dlp -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "$1"
|
||||
}
|
||||
|
||||
downloadClipUrl(){
|
||||
|
@ -68,7 +68,7 @@ viewUrl(){
|
|||
download(){
|
||||
url="$(echo "$*" | sed 's/download //')"
|
||||
notify-send "Arbit" "Downloading video to ${downloadDir}"
|
||||
if yt-dlp -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "${url}"
|
||||
if downloadCommand "${url}"
|
||||
then notify-send "Arbit" "Finished downloading video."
|
||||
else die "Failed to download file"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue