xbmc/xbmc — pull request #4216 by Montellese (2014-02-16 21:23:38+00:00)
Title: Two fixes to the music database

These two commits contain two fixes to the music database which were caused by the musicbrainz re-write.

The first one fixes the parsing of the result record in GetYearsNav by using the index (0) to access the year field instead of the column name "iYear" which should actually be "albumview.iYear" but the index-based access is faster anyway.

The second one fixes the iTimesPlayed column in the albumview view which wasn't accessible anymore due to the subquery (which is better written as a join anyway) and fixes http://trac.xbmc.org/ticket/14901.