From 479a7c85f88a7d3d1f0ea963df8d84aac104ae16 Mon Sep 17 00:00:00 2001 From: desktop Date: Sat, 30 Dec 2023 22:21:42 +0300 Subject: [PATCH] Vdl : Update to the new name format. --- .config/bash/module/Vdl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/bash/module/Vdl.sh b/.config/bash/module/Vdl.sh index 3258529..9432089 100644 --- a/.config/bash/module/Vdl.sh +++ b/.config/bash/module/Vdl.sh @@ -9,8 +9,8 @@ function vdl() { local target="${@}" # What to download/update. - # If no [LINK] provided, try to read from `src.txt`. - [[ "${target}" = "" ]] && target="$(cat src.txt)" + # If no [LINK] provided, try to read from `Src.txt`. + [[ "${target}" = "" ]] && target="$(cat Src.txt)" # If could not get [LINK] eventually, show an error and exit. if [[ "${target}" = "" ]]; then @@ -20,10 +20,10 @@ function vdl() { fi # Save [LINK] for later use. - [[ -f "src.txt" ]] || echo "${target}" > src.txt + [[ -f "Src.txt" ]] || echo "${target}" > Src.txt # Download [LINK] content. - yt-dlp -f 'bestvideo[height<=?1081]+bestaudio/best' --download-archive index.txt --embed-thumbnail --embed-subs --write-auto-subs --embed-metadata --merge-output-format mkv -cio '%(playlist_index)000006d_%(id)s.%(ext)s' ${target} # || _vdl_retry + yt-dlp -f 'bestvideo[height<=?1081]+bestaudio/best' --download-archive Index.txt --embed-thumbnail --embed-subs --write-auto-subs --embed-metadata --merge-output-format mkv -cio '%(playlist_index)000006d_%(id)s.%(ext)s' ${target} # || _vdl_retry } # Temporary fix for vk downloads.