Add Apple Music (#1611)

* iTunes --> Music

* add back iTunes

* fix indentation

* fix indentation 2

* ty vs code

* fix ?
This commit is contained in:
Iuri Jikidze 2020-11-25 01:09:10 -08:00 committed by GitHub
parent df61458e7f
commit 2b559cb8c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -512,6 +512,7 @@ disk_percent="on"
# guayadeque # guayadeque
# io.elementary.music # io.elementary.music
# iTunes # iTunes
# Music
# juk # juk
# lollypop # lollypop
# MellowPlayer # MellowPlayer
@ -2728,6 +2729,7 @@ get_song() {
"guayadeque" "guayadeque"
"io.elementary.music" "io.elementary.music"
"iTunes" "iTunes"
"Music"
"juk" "juk"
"lollypop" "lollypop"
"MellowPlayer" "MellowPlayer"
@ -2843,6 +2845,12 @@ get_song() {
string & "\n" & name of current track as string')" string & "\n" & name of current track as string')"
;; ;;
"music"*)
song="$(osascript -e 'tell application "Music" to artist of current track as¬
string & "\n" & album of current track as¬
string & "\n" & name of current track as string')"
;;
"banshee"*) "banshee"*)
song="$(banshee --query-artist --query-album --query-title |\ song="$(banshee --query-artist --query-album --query-title |\
awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2} awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2}