Skip to content

Commit

Permalink
recentlyadded: use values from CAlbum instead of manually querying th…
Browse files Browse the repository at this point in the history
…em one by one for every album
  • Loading branch information
Montellese committed Jul 7, 2012
1 parent f95c66b commit 60ba8b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/utils/RecentlyAddedJob.cpp
Expand Up @@ -291,10 +291,10 @@ bool CRecentlyAddedJob::UpdateMusic()


CStdString strArtist = musicdatabase.GetSingleValue("albumview", "strArtists", strSQLAlbum); CStdString strArtist = musicdatabase.GetSingleValue("albumview", "strArtists", strSQLAlbum);


home->SetProperty("LatestAlbum." + value + ".Title" , musicdatabase.GetAlbumById(album.idAlbum)); home->SetProperty("LatestAlbum." + value + ".Title" , album.strAlbum);
home->SetProperty("LatestAlbum." + value + ".Year" , atoi(musicdatabase.GetSingleValue("album", "iYear", strSQLAlbum))); home->SetProperty("LatestAlbum." + value + ".Year" , album.iYear);
home->SetProperty("LatestAlbum." + value + ".Artist" , strArtist); home->SetProperty("LatestAlbum." + value + ".Artist" , strArtist);
home->SetProperty("LatestAlbum." + value + ".Rating" , musicdatabase.GetSingleValue("albumview", "iRating", strSQLAlbum)); home->SetProperty("LatestAlbum." + value + ".Rating" , album.iRating);
home->SetProperty("LatestAlbum." + value + ".Path" , strDBpath); home->SetProperty("LatestAlbum." + value + ".Path" , strDBpath);
home->SetProperty("LatestAlbum." + value + ".Thumb" , strThumb); home->SetProperty("LatestAlbum." + value + ".Thumb" , strThumb);
home->SetProperty("LatestAlbum." + value + ".Fanart" , strFanart); home->SetProperty("LatestAlbum." + value + ".Fanart" , strFanart);
Expand Down

0 comments on commit 60ba8b1

Please sign in to comment.