Permalink
Browse files

Multiply album ratings

  • Loading branch information...
Razzeee committed Dec 19, 2015
1 parent 8221170 commit 1130930b8701fdd91861c11ce15d7e92292c6df9
Showing with 5 additions and 1 deletion.
  1. +5 −1 xbmc/music/MusicDatabase.cpp
@@ -4407,11 +4407,15 @@ void CMusicDatabase::UpdateTables(int version)
m_pDS->exec("ALTER TABLE album ADD iVotes INTEGER NOT NULL DEFAULT 0");
m_pDS->exec("ALTER TABLE song ADD votes INTEGER NOT NULL DEFAULT 0");
}
if (version < 58)
{
m_pDS->exec("UPDATE album SET fRating = fRating * 2");
}
}

int CMusicDatabase::GetSchemaVersion() const
{
return 57;
return 58;
}

unsigned int CMusicDatabase::GetSongIDs(const Filter &filter, std::vector<std::pair<int,int> > &songIDs)

0 comments on commit 1130930

Please sign in to comment.