Apple Music URL Scheme

风流意气都作罢 提交于 2019-12-04 21:19:58

问题


I need to know the URL Scheme of Apple Music to open a specific song. Up to now I was using the link like this:

https://itunes.apple.com/us/album/monsieur-cousteau/id496076893?i=496076903&uo=4

That link, was working perfectly in iTunes Store, but now is not working any more. That's because the link is opened by Apple Music, and it seems to work because it opens the album, but not the specific song.


回答1:


The structure of the links has changed there is now a flag in there for the open method:

iTunes:

https://geo.itunes.apple.com/au/album/monsieur-cousteau/id496076893?i=496076903&app=itunes

Apple music:

https://geo.itunes.apple.com/au/album/monsieur-cousteau/id496076893?i=496076903&mt=1&app=music

Note the app= at the end

There is a link generator here: http://linkmaker.itunes.apple.com/ but I would imaging that you are generating these from your own log of apple ID's yes?

Also you will need to change the store, I am /au/ because I am in australia, these links don't always automatically forward the user and can give "Not available on your store" errors.

To get to a specific track you use this:

https://itunes.apple.com/au/album/monsieur-cousteau/id496076893?i=496076903&app=itunes&ign-mpt=uo%3D4#

Note the change in uo part, I am not sure how this particular part is generated as I got out of the industry a year ago but there is more information here: https://www.apple.com/itunes/affiliates/resources/documentation/tools_en.html unfortunately being I no longer work in the industry I am not classed as an affiliate any more.



来源:https://stackoverflow.com/questions/31194155/apple-music-url-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!