From 3a0d331755bd9c1d7a4f3e858d42e902b8a7c3eb Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 2 May 2026 07:13:24 +0900 Subject: modified bin/qndl --- ar/.local/bin/qndl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ar') diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index 6cf3053..f522ec3 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -25,11 +25,17 @@ get_cookies() { esac } +normalize_url() { + # yt-dlp's `soop` extractor only matches sooplive.co.kr / afreecatv.com, + # so rewrite the newer sooplive.com domain to .co.kr. + printf '%s' "$1" | sed 's|\.sooplive\.com/|.sooplive.co.kr/|' +} + get_url() { for _arg in "$@"; do case "$_arg" in https://* | http://*) - printf '%s' "$_arg" + normalize_url "$_arg" return 0 ;; esac @@ -37,7 +43,7 @@ get_url() { _clip="$(xclip -selection clipboard -o 2>/dev/null)" case "$_clip" in https://* | http://*) - printf '%s' "$_clip" + normalize_url "$_clip" return 0 ;; esac -- cgit v1.2.3