Skip to content

Commit

Permalink
Fix: htbackdrops.com artist fanart backgrounds for spotyxbmc2 Frodo
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Oct 22, 2012
1 parent cd76e58 commit 439580b
Showing 1 changed file with 10 additions and 10 deletions.
Expand Up @@ -14127,7 +14127,7 @@ index 0000000..59c23ce
+ SxThumb* thumb = ps->getPlaylist(i)->getThumb();
+ if (thumb != NULL)
+ pItem->SetArt("thumb", thumb->getPath());
+ pItem->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem->SetArt("fanart", Settings::getInstance()->getFanart());
+ items.Add(pItem);
+ }
+ }
Expand Down Expand Up @@ -14204,7 +14204,7 @@ index 0000000..59c23ce
+ pItem->m_bIsFolder = true;
+ items.Add(pItem);
+ pItem->SetIconImage("DefaultMusicArtists.png");
+ pItem->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem->SetArt("fanart", Settings::getInstance()->getFanart());
+ }
+
+ //add the albums
Expand Down Expand Up @@ -14523,23 +14523,23 @@ index 0000000..59c23ce
+ pItem->SetPath(path);
+ pItem->m_bIsFolder = true;
+ items.Add(pItem);
+ pItem->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem->SetArt("fanart", Settings::getInstance()->getFanart());
+
+ //add the album entry
+ CFileItemPtr pItem2(new CFileItem(Settings::getInstance()->getTopListAlbumString()));
+ path.Format("musicdb://2/spotify:toplist");
+ pItem2->SetPath(path);
+ pItem2->m_bIsFolder = true;
+ items.Add(pItem2);
+ pItem2->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem2->SetArt("fanart", Settings::getInstance()->getFanart());
+
+ //add the artist entry
+ CFileItemPtr pItem3(new CFileItem(Settings::getInstance()->getTopListArtistString()));
+ path.Format("musicdb://1/spotify:toplist");
+ pItem3->SetPath(path);
+ pItem3->m_bIsFolder = true;
+ items.Add(pItem3);
+ pItem3->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem3->SetArt("fanart", Settings::getInstance()->getFanart());
+ }
+ return true;
+}
Expand All @@ -14556,7 +14556,7 @@ index 0000000..59c23ce
+ pItem->SetPath(path);
+ pItem->m_bIsFolder = true;
+ items.Add(pItem);
+ pItem->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem->SetArt("fanart", Settings::getInstance()->getFanart());
+
+ //add radio 2
+ name.Format("%s%s", Settings::getInstance()->getRadioPrefixString(),
Expand All @@ -14566,7 +14566,7 @@ index 0000000..59c23ce
+ pItem2->SetPath(path);
+ pItem2->m_bIsFolder = true;
+ items.Add(pItem2);
+ pItem2->SetProperty("fanart_image", Settings::getInstance()->getFanart());
+ pItem2->SetArt("fanart", Settings::getInstance()->getFanart());
+
+ }
+ return true;
Expand Down Expand Up @@ -15579,7 +15579,7 @@ index 0000000..fcc1390
+ const CFileItemPtr pItem(new CFileItem(path, outAlbum));
+ if (album->hasThumb())
+ pItem->SetArt("thumb", album->getThumb()->getPath());
+ pItem->SetProperty("fanart_image", *album->getFanart());
+ pItem->SetArt("fanart", *album->getFanart());
+ return pItem;
+ }
+
Expand Down Expand Up @@ -15610,7 +15610,7 @@ index 0000000..fcc1390
+ const CFileItemPtr pItem(new CFileItem(outSong));
+ if (track->hasThumb())
+ pItem->SetArt("thumb", track->getThumb()->getPath());
+ pItem->SetProperty("fanart_image", *track->getFanart());
+ pItem->SetArt("fanart", *track->getFanart());
+ return pItem;
+ }
+
Expand All @@ -15635,7 +15635,7 @@ index 0000000..fcc1390
+ pItem->SetArt("thumb", artist->getThumb()->getPath());
+
+ pItem->SetIconImage("DefaultArtist.png");
+ pItem->SetProperty("fanart_image", *artist->getFanart());
+ pItem->SetArt("fanart", *artist->getFanart());
+ pItem->SetProperty("artist_description", artist->getBio());
+
+ return pItem;
Expand Down

0 comments on commit 439580b

Please sign in to comment.