Mercurial > hg > camir-aes2014
comparison core/magnatagatune/mb_retrieve_artist_id_from_isrc.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function [artist_mbid, out] = mb_retrieve_artist_id_from_isrc(isrc) | |
2 | |
3 % song info API | |
4 url = sprintf('http://www.musicbrainz.org/ws/2/isrc/%s',urlencode(isrc)); | |
5 [status] = wget(url,'-t 10 -U firefox -O tmp.xml'); | |
6 | |
7 try | |
8 out = xml2struct('tmp.xml'); | |
9 % album name for verification | |
10 albumname = out.metadata.isrc.recording_dash_list.recording.title | |
11 artist_mbid = out.metadata.isrc.recording_dash_list.recording.Attributes.id; | |
12 catch | |
13 artist_mbid = []; | |
14 out = []; | |
15 end |