From: krome Date: Tue, 5 Oct 2010 09:07:42 +0000 (+0200) Subject: update of the keyword used for the lastfm support X-Git-Tag: v0.1~26^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=073282f099ac8e8302a475f8f2c53a69b17c17d1;p=popcorn-js.git update of the keyword used for the lastfm support --- diff --git a/demos/semantic_video/index.html b/demos/semantic_video/index.html index cdcb07a..d0ca857 100644 --- a/demos/semantic_video/index.html +++ b/demos/semantic_video/index.html @@ -213,6 +213,7 @@ Collapse
+ diff --git a/demos/semantic_video/xml/webMadeMovies.xml b/demos/semantic_video/xml/webMadeMovies.xml index 0662c60..e31c9bc 100644 --- a/demos/semantic_video/xml/webMadeMovies.xml +++ b/demos/semantic_video/xml/webMadeMovies.xml @@ -179,10 +179,11 @@ Celine Celines - - - - + + + + + diff --git a/popcorn.js b/popcorn.js index 2328ac9..4f3c3b9 100644 --- a/popcorn.js +++ b/popcorn.js @@ -638,11 +638,11 @@ document.getElementById(this.params.target).appendChild(target); // Div is hidden by default target.setAttribute('style', 'display:none'); + // This uses jquery - $.getJSON("http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist="+ this.params.resourceid +"&api_key=30ac38340e8be75f9268727cb4526b3d&format=json&callback=?", + $.getJSON("http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist="+ this.params.artist +"&api_key=30ac38340e8be75f9268727cb4526b3d&format=json&callback=?", function(data){ htmlString = ''; - //console.log(data.artist.image[2]['#text']); htmlString += '

'+data.artist.name+'

'; htmlString += ''; htmlString += '

'+ data.artist.bio.summary +'

'; @@ -986,6 +986,16 @@ create: function(name, params, text, videoManager) { return new Popcorn.LastfmCommand(name, params, text, videoManager); } + }, + facebookuser: { + create: function(name, params, text, videoManager) { + return new Popcorn.FacebookuserCommand(name, params, text, videoManager); + } + }, + blogmarks: { + create: function(name, params, text, videoManager) { + return new Popcorn.BlogmarksCommand(name, params, text, videoManager); + } }, lowerthird: { create: function(name, params, text, videoManager) {