Mercurial > hg > camir-aes2014
diff core/magnatagatune/fm_retrieve_artist.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/magnatagatune/fm_retrieve_artist.m Tue Feb 10 15:05:51 2015 +0000 @@ -0,0 +1,13 @@ +function [artists, mbids] = fm_retrieve_artist(artist_name) +%[tags, tag_weight] = fm_get_artist_tags(artist_name) +% +% returns last.fm artist tags and tag weights for given artist +% this uses a lastpy python script to handle the REST data exchange + +% call python function +str = python('fm_retrieve_artist.py',artist_name); + +% parse text function output +artists = textscan(str,'%s %s','Delimiter',','); +mbids = artists{2}; +artists = artists{1}; \ No newline at end of file