Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/library/rekordbox/rekordboxfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "track/beats.h"
#include "track/cue.h"
#include "track/keyfactory.h"
#include "track/keyutils.h"
#include "track/track.h"
#include "util/color/color.h"
#include "util/db/dbconnectionpooled.h"
Expand Down Expand Up @@ -93,6 +94,7 @@ bool createLibraryTable(QSqlDatabase& database, const QString& tableName) {
" bitrate TEXT,"
" bpm FLOAT,"
" key TEXT,"
" key_id INTEGER,"
" rating INTEGER,"
" analyze_path TEXT UNIQUE,"
" device TEXT,"
Expand Down Expand Up @@ -389,6 +391,7 @@ void insertTrack(
query.bindValue(":comment", comment);
query.bindValue(":tracknumber", tracknumber);
query.bindValue(":key", key);
query.bindValue(":key_id", static_cast<int>(KeyUtils::guessKeyFromText(key)));
query.bindValue(":bpm", bpm);
query.bindValue(":bitrate", bitrate);
query.bindValue(":analyze_path", anlzPath);
Expand Down Expand Up @@ -473,10 +476,10 @@ QString parseDeviceDB(mixxx::DbConnectionPoolPtr dbConnectionPool, TreeItem* dev
query.prepare("INSERT INTO " + kRekordboxLibraryTable +
" (rb_id, artist, title, album, year,"
"genre,comment,tracknumber,bpm, bitrate,duration, location,"
"rating,key,analyze_path,device,color) VALUES (:rb_id, :artist, "
"rating,key,key_id,analyze_path,device,color) VALUES (:rb_id, :artist, "
":title, :album, :year,:genre,"
":comment, :tracknumber,:bpm, :bitrate,:duration, :location,"
":rating,:key,:analyze_path,:device,:color)");
":rating,:key,:key_id,:analyze_path,:device,:color)");

int audioFilesCount = 0;

Expand Down
Loading