Repository navigation
Traktor improvements - #137
Merged
Merged
Conversation
pSpitzner
temporarily deployed
to
integration_tests
September 30, 2026 21:46 — with
GitHub Actions
Inactive
pSpitzner
temporarily deployed
to
integration_tests
September 30, 2026 21:46 — with
GitHub Actions
Inactive
|
Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
pSpitzner
temporarily deployed
to
integration_tests
September 30, 2026 21:49 — with
GitHub Actions
Inactive
pSpitzner
temporarily deployed
to
integration_tests
September 30, 2026 21:49 — with
GitHub Actions
Inactive
pSpitzner
temporarily deployed
to
integration_tests
September 30, 2026 21:58 — with
GitHub Actions
Inactive
pSpitzner
temporarily deployed
to
integration_tests
September 30, 2026 21:58 — with
GitHub Actions
Inactive
semohr
reviewed
Oct 1, 2026
pSpitzner
temporarily deployed
to
integration_tests
October 1, 2026 14:12 — with
GitHub Actions
Inactive
pSpitzner
temporarily deployed
to
integration_tests
October 1, 2026 14:12 — with
GitHub Actions
Inactive
NMLPath kept its parts in a mutable list and was unhashable, so paths could not be used as dictionary keys while also being mutable behind the scenes. - store parts as a tuple, make the class a frozen, slotted dataclass - take the optional volume id as a constructor argument instead of setting the private attribute after construction - derive equality and hashing from the dataclass: the volume id is excluded, so a playlist path (volume name only) equals the collection path of the same file
Every path lookup ran an XPath query over the whole COLLECTION node, and a track inserted into the library forced the next lookup to scan again. - build a NMLPath -> NMLTrack index on first use and reuse it afterwards - keep the index in sync on insert instead of dropping it
NML collections only offered identifier lookups, so matching fell back to iterating every track in the calling code. find_by_info scans the collection and returns tracks whose metadata contains every supplied, non-empty field as a case-insensitive substring. Artists and albums match when any requested value is contained in any value of the track.
NMLPlaylistTrack.info always returned an empty TrackInfo, because playlist entries only store a path while metadata lives in the main collection. Playlist tracks can now hold a reference to the owning NMLLibrary and resolve their path through it. Playlists pass their library on load, on lookup and on assignment, so tracks keep the link across playlist edits.
- mark Traktor as supporting metadata lookups in the capability table - mention in the matching guide that the metadata search itself depends on the service, with a local collection matching substrings
semohr
force-pushed
the
traktor_search
branch
from
November 9, 2026 18:59
083bbc6 to
72c53d9
Compare
semohr
temporarily deployed
to
integration_tests
November 9, 2026 18:59 — with
GitHub Actions
Inactive
semohr
temporarily deployed
to
integration_tests
November 9, 2026 18:59 — with
GitHub Actions
Inactive
semohr
approved these changes
Nov 20, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
find_by_infoTODO (separate PR):
find_by_infoshould work for all services: match any or match all?