Skip to content

Commit

Permalink
Fixed AllMusic provider
Browse files Browse the repository at this point in the history
  • Loading branch information
JMPerez committed Oct 26, 2013
1 parent b2de3be commit 41b15de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions js/providers/allmusic.js
Expand Up @@ -11,8 +11,8 @@ SP.Providers.AllMusic = function() {
if (albumArtist && albumTitle) {
callbackFound(albumTitle + " - " + albumArtist);
SP.Search.searchAlbum(albumTitle + " - " + albumArtist, function(href) {
$('<iframe style="margin: 0 auto;display: block;padding: 1em;" src="https://embed.spotify.com/?uri=' + href + '" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>')
.prependTo('#disco-browser');
$('<iframe style="padding-bottom: 1em" src="https://embed.spotify.com/?uri=' + href + '" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>')
.prependTo('.content');
}, function() {
clallbackNotFound();
});
Expand All @@ -23,8 +23,8 @@ SP.Providers.AllMusic = function() {
if (songArtist && songTitle) {
callbackFound(songTitle + " - " + songArtist);
SP.Search.searchAlbum(songTitle + " - " + songArtist, function(href) {
$('<iframe src="https://embed.spotify.com/?uri=' + href + '" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>')
.prependTo('#main');
$('<iframe style="padding-bottom: 1em" src="https://embed.spotify.com/?uri=' + href + '" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>')
.prependTo('.content');
}, function() {
clallbackNotFound();
});
Expand All @@ -38,8 +38,8 @@ SP.Providers.AllMusic = function() {
}).done(function(data) {
if (data.artist.albums.length > 0) {
data.artist.albums.slice(0, 1).forEach(function(a) {
$('<iframe style="margin: 0 auto;display: block;padding: 1em;" src="https://embed.spotify.com/?uri=' + a.album.href + '" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>')
.prependTo('.details');
$('<iframe style="padding-bottom: 1em" src="https://embed.spotify.com/?uri=' + a.album.href + '" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>')
.prependTo('.content');
});
} else {
clallbackNotFound();
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,6 +1,6 @@
{
"name": "Extendify",
"version": "0.1.1",
"version": "0.1.2",
"manifest_version": 2,
"description": "It appends a Spotify Play Button to Twitter, Wikipedia, Google search results and many more!",
"permissions": ["tabs"],
Expand Down

0 comments on commit 41b15de

Please sign in to comment.