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

查看:151
本文介绍了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

ie:
歌曲 https://soundcloud.com/yaz-francis-1/pompeii-bastille

艺术家:Bastille

Artist: Bastille

歌曲:庞贝

它只是组合在tracktitle(标题)?用户也不总是歌曲艺术家的名字,而是将其发布到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!

最佳

JP

推荐答案

我正在为拥有唱片公司的客户构建一个Web应用程序,并希望发布不同的艺术家和专辑的5000多首歌曲。我已经把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.

这是一个很混乱但它有效。所以这样的东西,从这个艺术家在我的Web应用程序从特定的用户帐户获得所有的歌曲

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天全站免登陆