mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
wrapping should work properly. Probably.
This commit is contained in:
8
jellyfin
8
jellyfin
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user