From 073282f099ac8e8302a475f8f2c53a69b17c17d1 Mon Sep 17 00:00:00 2001 From: krome Date: Tue, 5 Oct 2010 11:07:42 +0200 Subject: [PATCH] update of the keyword used for the lastfm support --- demos/semantic_video/index.html | 1 + demos/semantic_video/xml/webMadeMovies.xml | 9 +++++---- popcorn.js | 14 ++++++++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) 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) { -- 2.43.0