wrapping should work properly. Probably.

This commit is contained in:
coolnsx
2025-08-16 18:58:37 +05:30
parent 5272006282
commit e431d829ac

View File

@@ -99,10 +99,12 @@ mpv_jellyfin() {
sub="$JF_URL/Videos/$ITEM_ID/$1/Subtitles/0/0/Stream.ass?api_key=$JF_TOKEN"
! curl -s "$sub" | grep -q "Error processing request" && sub_arg="--sub-file=$sub"
if uname -o | grep -q 'ndroid'; then
text="Title: $2\nURL: $url\n"
text="Title: $2\nURL: $url"
[ -n "$sub_arg" ] && text="$text\nSub URL: $sub"
printf "\n%s" "$text"
printf "%s" "$text" | termux-clipboard-set
#shellcheck disable=SC2059
printf "\n$text"
#shellcheck disable=SC2059
printf "$text" | termux-clipboard-set
return 0
fi
#shellcheck disable=SC2086