diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-10 19:36:55 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-10 19:36:55 +0900 |
| commit | ebd514b12f232f6ff1100a3cb84edd658959e513 (patch) | |
| tree | e1f5a66ac3e62a9f98fae9c9464d1450364ea2cb /ar/.local/bin/qndl | |
| parent | e5c17ce366f420e7c98a452757d4cb8241c2e7e6 (diff) | |
modified bin/qndl, created yt-dlp/
Diffstat (limited to 'ar/.local/bin/qndl')
| -rwxr-xr-x | ar/.local/bin/qndl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index ff18e17..6a815ac 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -96,8 +96,8 @@ case $url in ytdl_cmd_base="$ytdl_cmd_base --yes-playlist" && echo >/tmp/qplaylist [ "$download_type" = "video" ] && - channel=$(yt-dlp --print "%(channel)s" "$url" | head -n 1 | sed 's/, /,/g;s/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') && - playlist=$(yt-dlp --print "%(playlist_title)s" "$url" | head -n 1 | sed 's/, /,/g;s/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') && + channel=$(yt-dlp --print "%(channel)s" "$url" 2>/dev/null | head -n 1 | sed 's/, /,/g;s/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') && + playlist=$(yt-dlp --print "%(playlist_title)s" "$url" 2>/dev/null | head -n 1 | sed 's/, /,/g;s/[\/:*?"<>| ]/-/g' | tr '[:upper:]' '[:lower:]') && subdir="${channel}/${playlist}" && mkdir -p "${output_dir}/${subdir}" && ytdl_output_format="${output_dir}/${subdir}/%(playlist_index)02d_%(title)s [%(id)s].%(ext)s" |
