Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

recentlyadded: use values from CAlbum instead of manually querying th…

…em one by one for every album
  • Loading branch information...
commit 60ba8b124b79ba25ae2d0742ecd9d2075ea1cb9e 1 parent f95c66b
Sascha Montellese authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 xbmc/utils/RecentlyAddedJob.cpp
6 xbmc/utils/RecentlyAddedJob.cpp
@@ -291,10 +291,10 @@ bool CRecentlyAddedJob::UpdateMusic()
291 291
292 292 CStdString strArtist = musicdatabase.GetSingleValue("albumview", "strArtists", strSQLAlbum);
293 293
294   - home->SetProperty("LatestAlbum." + value + ".Title" , musicdatabase.GetAlbumById(album.idAlbum));
295   - home->SetProperty("LatestAlbum." + value + ".Year" , atoi(musicdatabase.GetSingleValue("album", "iYear", strSQLAlbum)));
  294 + home->SetProperty("LatestAlbum." + value + ".Title" , album.strAlbum);
  295 + home->SetProperty("LatestAlbum." + value + ".Year" , album.iYear);
296 296 home->SetProperty("LatestAlbum." + value + ".Artist" , strArtist);
297   - home->SetProperty("LatestAlbum." + value + ".Rating" , musicdatabase.GetSingleValue("albumview", "iRating", strSQLAlbum));
  297 + home->SetProperty("LatestAlbum." + value + ".Rating" , album.iRating);
298 298 home->SetProperty("LatestAlbum." + value + ".Path" , strDBpath);
299 299 home->SetProperty("LatestAlbum." + value + ".Thumb" , strThumb);
300 300 home->SetProperty("LatestAlbum." + value + ".Fanart" , strFanart);

0 comments on commit 60ba8b1

Please sign in to comment.
Something went wrong with that request. Please try again.