Skip to content

Commit

Permalink
[Apple Music] Implement #42
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Feb 18, 2022
1 parent cd18376 commit 2481b4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This skill interacts with your Sonos devices and allows you to play music from d

* Local library
* Amazon Music *(account required)*
* Apple Music *(account required)*
* Deezer *(account required)*
* Plex *(account required)*
* Spotify *(account required)*
Expand Down Expand Up @@ -61,7 +62,7 @@ Before using a music service, **make sure that you linked** your service account
* "enable repeat mode"
* "next music"
* "previous music"
* "give me information on dining room device"
* "give me information on dining room speaker"
* "give me detailed information about library speaker"

## Installation
Expand Down
4 changes: 2 additions & 2 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
'Wolfgangs Music', 'YouTube Music']

# Service that requires authentication
REQUIRED_AUTHENTICATION = ['Spotify', 'Amazon Music', 'Deezer', 'Plex',
'Tidal']
REQUIRED_AUTHENTICATION = ['Spotify', 'Apple Music', 'Amazon Music', 'Deezer',
'Plex', 'Tidal']

# List of supported categories for music library
SUPPORTED_MUSIC_LIBRARY_CATEGORIES = ['artists', 'album_artists', 'albums',
Expand Down
2 changes: 1 addition & 1 deletion settingsmeta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ skillMetadata:
- name: default_source
type: select
label: Default source of music
options: "Music Library|music library;Spotify|spotify;Deezer|deezer;Amazon Music|amazon music;Plex|plex;Tidal|tidal"
options: "Music Library|music library;Amazon Music|amazon music;Apple Music|apple music;Deezer|deezer;Plex|plex;Spotify|spotify;Tidal|tidal"
value: "music library"
- name: link_code
type: text
Expand Down
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def subscribed_services(self):
try:
# Commented until SoCo integrates this method back
# self.services = MusicService.get_subscribed_services_names()
self.services = ['Spotify', 'Amazon Music', 'Deezer', 'Plex',
'Wolfgangs Music', 'Music Library', 'Tidal']
self.services = ['Spotify', 'Apple Music', 'Amazon Music', 'Deezer',
'Plex', 'Wolfgangs Music', 'Music Library', 'Tidal']
return self.services
except exceptions.SoCoException as err:
self.log.error(err)
Expand Down

0 comments on commit 2481b4b

Please sign in to comment.