Add Apple Music support
goldyfruit opened this issue · 1 comments
goldyfruit commented
Since PR SoCo/SoCo#900 has been merged, service authentication should be easier.
goldyfruit commented
So Apple Music is not supported due third party authentication mechanism... Nothing is simple... 👎
The "only" to support Apple Music via SoCo library is to use the ShareLink plugin which supports Apple Music.
from soco import SoCo
from soco.plugins.sharelink import ShareLinkPlugin
speaker=SoCo("10.0.2.15")
speaker.clear_queue()
sharelink=ShareLinkPlugin(speaker)
sharelink.add_share_link_to_queue("https://music.apple.com/dk/playlist/60s-hard-rock-essentials/pl.462cd74ff6234e48957aecf14f4927ab")
speaker.play()