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 | |
| parent | e5c17ce366f420e7c98a452757d4cb8241c2e7e6 (diff) | |
modified bin/qndl, created yt-dlp/
Diffstat (limited to 'ar')
| -rw-r--r-- | ar/.config/yt-dlp/config | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/qndl | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ar/.config/yt-dlp/config b/ar/.config/yt-dlp/config new file mode 100644 index 0000000..ce584d3 --- /dev/null +++ b/ar/.config/yt-dlp/config @@ -0,0 +1,2 @@ +--js-runtimes node:/home/si/.local/share/asdf/shims/node +--remote-components ejs:github 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" |
