mirror of
https://github.com/dewomser/Toot_music_is_playing.git
synced 2026-03-13 16:37:17 +01:00
quote or not to quote
This commit is contained in:
parent
4cae504c1d
commit
fa8ea75770
1 changed files with 5 additions and 2 deletions
|
|
@ -3,10 +3,13 @@
|
||||||
user="twitteruser"
|
user="twitteruser"
|
||||||
#//Musikinfo von Clementie Audioplayer holen
|
#//Musikinfo von Clementie Audioplayer holen
|
||||||
readarray a <<< "$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep -E 'artUrl|genre|artist|album:|title:'| sed -e 's/xesam://g'| sed -e 's/mpris:artUrl: file:\/\///g')"
|
readarray a <<< "$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep -E 'artUrl|genre|artist|album:|title:'| sed -e 's/xesam://g'| sed -e 's/mpris:artUrl: file:\/\///g')"
|
||||||
|
|
||||||
#//Bild kopieren
|
#//Bild kopieren
|
||||||
|
# no quotes variable no format - strip \n
|
||||||
pfad=$(pwd)
|
pfad=$(pwd)
|
||||||
cp "${a[0]}" "$pfad/cover.jpg"
|
# shellcheck disable=SC2086
|
||||||
#cp "${a[0]}" "$HOME"/bin/twitter-pic/cover.jpg
|
cp ${a[0]} "$pfad/cover.jpg"
|
||||||
|
#cp ${a[0]} $HOME/git/twitter-pic/cover.jpg
|
||||||
# Daten an den Twitterclient
|
# Daten an den Twitterclient
|
||||||
text="Ich höre gerade:${a[1]}${a[2]}${a[4]}"
|
text="Ich höre gerade:${a[1]}${a[2]}${a[4]}"
|
||||||
#// Bildgröße in Byte ermitteln
|
#// Bildgröße in Byte ermitteln
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue