-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RekordBoxFeature: add played functionality to rekordbox external library #13834
base: main
Are you sure you want to change the base?
Conversation
…ces without importing
Welcome at Mixxx! |
Done |
The pre-commit check is failing. The best way to fix pre-commit issues is to install pre-commit locally on your system, as described here: https://github.com/mixxxdj/mixxx/wiki/Using-Git#set-up-automatic-code-checking |
Applied pre-commit patch now. I tried to do it before creating the PR, but had some issues with it failing with some python exception. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple nitpicky comments. I'm probably not the right person to do a proper review here because I'm not familiar enough with the database code.
query.prepare("select id from " + kRekordboxLibraryTable + " where location=:location"); | ||
query.bindValue(":location", pTrack->getLocation()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than an in-memory set, have you considered adding a temporary table that stores the played track ids and then query against that here? That would result in improved scalability.
Co-authored-by: Swiftb0y <[email protected]>
Co-authored-by: Swiftb0y <[email protected]>
Co-authored-by: Swiftb0y <[email protected]>
Ok, so innocently i tried to use GitHub's features for the comments I got and it messed up my commits. |
don't worry with that for now. we can clean up the history later. no need to open a new PR or create new branch. |
The History feature uses certain logic to prevent insain played numbers during scratching: mixxx/src/library/trackset/setlogfeature.cpp Line 615 in 359c40e
I think it is a good idea to move this functionality into Playerinfo and feed both tables with the same value to have it consistent in all views. |
If you think this fits within the scope of this PR i can try and make a commit later tonight |
Hello,
Because I use mixxx a lot for my DVS setup with rekordbox exports from different sources I decided to create this PR.
This PR introduces minimal and simple changes to the RekordboxFeature in order to display and correctly interpret the "played" column in the external library view.
All SQL modified is in regards to tables that are dropped and created with each restart of mixxx.
Changes are integrated with the current hierarchy of QAbstractDisplayTable.