Unverified Commit 2b559cb8 authored by Iuri Jikidze's avatar Iuri Jikidze Committed by GitHub

Add Apple Music (#1611)

* iTunes --> Music * add back iTunes * fix indentation * fix indentation 2 * ty vs code * fix ?
parent df61458e
......@@ -512,6 +512,7 @@ disk_percent="on"
# guayadeque
# io.elementary.music
# iTunes
# Music
# juk
# lollypop
# MellowPlayer
......@@ -2728,6 +2729,7 @@ get_song() {
"guayadeque"
"io.elementary.music"
"iTunes"
"Music"
"juk"
"lollypop"
"MellowPlayer"
......@@ -2843,6 +2845,12 @@ get_song() {
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"*)
song="$(banshee --query-artist --query-album --query-title |\
awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment