Quotineng aus der geratenen URL entfernt.

This commit is contained in:
dewomser 2023-05-18 14:58:56 +02:00
parent 4195c98cae
commit 0cdb28dfbd
No known key found for this signature in database
GPG key ID: 3A312467A034D190

View file

@ -51,7 +51,7 @@ a[4]="$(qdbus org.mpris.MediaPlayer2."$player" /org/mpris/MediaPlayer2 org.mpris
if [ -z "${a[4]}" ]; then a[4]="Title: ohne"; fi if [ -z "${a[4]}" ]; then a[4]="Title: ohne"; fi
if [ -z "${a[6]}" ]; then a[6]="Medialink: ohne"; fi if [ -z "${a[6]}" ]; then a[6]="url: ohne"; fi
#//Bild kopieren #//Bild kopieren
lolo1=$(urldecode "${a[0]}") lolo1=$(urldecode "${a[0]}")
@ -61,21 +61,19 @@ convert "$lolo1" -gravity south -background YellowGreen -splice 0x18 -annotat
#a[7]="$( ${a[6]} | sed -e 's/youtube/invidious/g')" #a[7]="$( ${a[6]} | sed -e 's/youtube/invidious/g')"
#olo1="$(echo ${a[6]} |sed -e 's/www.youtube.com/invidio.us/g')" #olo1="$(echo ${a[6]} |sed -e 's/www.youtube.com/invidio.us/g')"
## this is buggy ---shellcheck Grrrr#
# wenn sed Ersatz nicht will. dann diese Zeile # wenn sed Ersatz nicht will. dann diese Zeile
# lolo1="$(echo "${a[6]}" | sed -e 's/[[:alpha:]]*.youtube.com/invidio.us/g')" # lolo1="$(echo "${a[6]}" | sed -e 's/[[:alpha:]]*.youtube.com/invidio.us/g')"
# sed Ersatz wegen shelcheck-terror # sed Ersatz wegen shelcheck-terror
lolo3=${a[6]} lolo3=${a[6]}
lolo2="${lolo3#*.}" lolo2="${lolo3#*.}"
lolo1="${lolo2/youtube.com/invidio.us}" lolo1="${lolo2/youtube.com/url: https:\/\/invidio.us}"
## buggx end
# Daten an den Twitterclient # Daten an den Twitterclient
a[5]="https://www.youtube.com/results?search_query=${a[2]} ${a[4]}" a[5]="https://www.youtube.com/results?search_query=${a[2]} ${a[4]}"
lolo="${a[5]// /+}" lolo="${a[5]// /+}"
lolo=${lolo//\"/}
text1=$"ich höre gerade:" text1=$"ich höre gerade:"
text="$text1 text="$text1
${a[4]} ${a[4]}