mirror of
https://github.com/dewomser/Toot_music_is_playing.git
synced 2026-03-13 16:37:17 +01:00
Quotineng aus der geratenen URL entfernt.
This commit is contained in:
parent
4195c98cae
commit
0cdb28dfbd
1 changed files with 7 additions and 9 deletions
10
toot_music
10
toot_music
|
|
@ -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]}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue