Soundcloud API - 分别拉取艺术家姓名和歌曲名称? [英] Soundcloud API - Pull Artist Name and Song Title Separately?

查看:25
本文介绍了Soundcloud API - 分别拉取艺术家姓名和歌曲名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看 Soundcloud 文档 - 您似乎无法分别提取艺术家姓名和歌曲名称(或者我是否遗漏了什么?):

Looking through the Soundcloud documentation - it doesn't appear that you can pull the artist name and the song name separately (or am I missing something?):

http://developers.soundcloud.com/docs/api/reference#playlists

即:对于歌曲 https://soundcloud.com/yaz-francis-1/pompeii-bastille

艺术家:巴士底

歌曲:庞贝城

它是否只是结合在曲目标题(标题)中?用户也不总是歌曲艺术家的名字,而是将其发布到 soundcloud 的人的用户名.

Is it just combined in the tracktitle (title)? User is also not always the song artist name, but the username of the person who posted it to soundcloud.

如果不是,有没有办法把艺人名字和歌曲分开拉?

If not, is there anyway to pull Artist Name and Song separately?

任何帮助将不胜感激 - 谢谢!

Any help would be greatly appreciated - thanks!

最好,

日本

推荐答案

我正在为拥有唱片公司并希望发布 5000 多首不同艺术家和专辑的歌曲的客户构建 Web 应用程序.我已将 api 修改为死亡,并发现将曲目与艺术家联系起来的最佳方法是使用标签.通过这种方式,您还可以按艺术家姓名进行搜索并在 api 中获得结果.在我的特殊情况下,我使用机器标签来存储艺术家、专辑和曲目名称.我还将另一个标签存储为一个键,用于仅查找与该键匹配的曲目,因此在我的 Web 应用程序中,我不会从其他用户那里获取曲目,因为在从特定用户获取曲目时,您无法按标签和流派过滤结果.

I'm in the process of building a Web app for a client who owns a record label and wants to publish 5000+ songs of varying artists and albums. I have diaected the api to death and found the best way to tie a track to an artist is by using tags. This way you can also search by the artist name and get results in the api. In my particular case I am using machine tags to store the artist, album and track name. I also store another tag as a key for finding only tracks that match that key so on my Web app I don't get tracks from other users, since you can't filter results by tags and genre when getting tracks from a specific user.

虽然很乱,但确实有效.所以像这样从特定用户帐户获取该艺术家在我的网络应用程序上的所有歌曲

It's a but messy but it works. So something like this to get all songs by this artist on my Web app from a specific users account

/tracks.json?client_id=xxx&q=app:key=uniqueid&tags=app:artist=artist+name

/tracks.json?client_id=xxx&q=app:key=uniqueid&tags=app:artist=artist+name

如果你愿意,你也可以在那里加入流派.希望这有帮助

You can also throw genre in there too if you wanted. Hope this was helpful

这篇关于Soundcloud API - 分别拉取艺术家姓名和歌曲名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆