如何链接到正确的URL编码spotify搜索
人们链接到spotify搜索的方式似乎有所改变。以下代码应该可以工作:如何链接到正确的URL编码spotify搜索,spotify,urlencode,Spotify,Urlencode,人们链接到spotify搜索的方式似乎有所改变。以下代码应该可以工作: <a href="spotify:search:track:castle+on+the+hill+artist:ed+sheeran">spotify:search:track:castle on the hill artist:ed sheeran</a> 当Spotify打开时,它说没有找到“轨迹:城堡+山+艺术家:ed+sheeran”的结果 我们还尝试了百分比编码: <a href
<a href="spotify:search:track:castle+on+the+hill+artist:ed+sheeran">spotify:search:track:castle on the hill artist:ed sheeran</a>
当Spotify打开时,它说没有找到“轨迹:城堡+山+艺术家:ed+sheeran”的结果
我们还尝试了百分比编码:
<a href="spotify:search:track:castle%20on%20the%20hill%20artist:ed%20sheeran">Castle on the hill Ed Sheeran</a>
但这也失败了
关于如何正确链接到Spotify搜索,有什么建议吗?我找到了,解决方案发布在这里 url有一种新格式:
track:"castle on the hill" artist:"ed sheeran"
您需要单独对该部分进行URL编码,以
track%3A%22castle%20on%20the%20hill%22%20artist%3A%22ed%20sheeran%22.
并在前面添加spotify:search:
spotify:search:track%3A%22castle%20on%20the%20hill%22%20artist%3A%22ed%20sheeran%22我找到了答案,在这里发布了解决方案 url有一种新格式:
track:"castle on the hill" artist:"ed sheeran"
您需要单独对该部分进行URL编码,以
track%3A%22castle%20on%20the%20hill%22%20artist%3A%22ed%20sheeran%22.
并在前面添加spotify:search:
spotify:search:track%3A%22castle%20on%20the%20hill%22%20artist%3A%22ed%20sheeran%22您必须引用字段吗? 与Spotify web API一样,如果您这样做了 这意味着“精确搜索”。 曲目:“检查你自己” 可能找不到名为“check yo self”的曲目 哪里 轨道:检查你自己 可能(我排除了空格编码) 您是否尝试对“:”进行编码 在轨道和艺术家之后?
当然还有空格?您必须引用字段吗? 与Spotify web API一样,如果您这样做了 这意味着“精确搜索”。 曲目:“检查你自己” 可能找不到名为“check yo self”的曲目 哪里 轨道:检查你自己 可能(我排除了空格编码) 您是否尝试对“:”进行编码 在轨道和艺术家之后? 当然还有空间