MixesDB:Tests/Tracklist Merger

From MixesDB
Jump to navigationJump to search

Still in Beta… Requires a userscript – check Discord channel #trackidnet

Updates

2025.08.24.4
  • The Candidate diff is more or less fixed. It goes word by word so returning the result is slower now. Unused cues, and complete words like artists and versions are highlighted.
    Still it highlights the whole track when there a minimal changes within a word like a typo. Can't get the AI to fix this atm.
2025.08.23
  • TID now removes country codes like "Foo (BE)" properly in all kinds of variations
  • The 3 columns are no more 1/3 width each, but spread by actual text row width per column (usually the Original columns need less width). This avoids line breaks when there is actually enough space.
    Between the columns is an invisible divider to resize columns (indicated by drag cursor icon).
  • The diff section updates live as you type in any textarea of the Inputs section.

Bugs:

  • The Candidate diff highlights the whole track instead of only the non merged characters / words.

Older updates

Examples

All candidates from TID atm.

Example Merged result Candidate diff
Full tracklist without dur Works fine [39] should have only Anemone highlighted
2-digit dur matching 3 digit dur Works fine and [039] Dold - Untitled 29 [Unterwegs] is not highlighted green as new track
Gap tl to full tl w/o dur Works fine
  • Cue and labels are added
  • Aly-Us - Follow Me (Bok's Dub) remains and is not using (Full Intention Club Mix) from the candidate (but highlighted in diff for you to check)
Only text differences are highlighted red
New track in Candidate [23] Gresil - Mutation Blooding II is merged as new track (new cue)
Multiple new tracks added All new inserted tracks are highlighted
Large gaps Works fine [043] Ø [Phase] - Perplexed (Rødhåd's Extended Mix) [Token] is not added (but highlighted) because there's a [042] track and we have a minimum gap of 3 minutes for assuming a new track
Artist aka Alias - Trackname in Original Polyvinyl - Endgame In Mind (Chlär Remix) [Suara] is not inserted again as [49] [49] Polyvinyl - Endgame In Mind (Chlär Remix) [Suara] is not highlighted red as text difference
Cue variations (XX:XX vs XX) Cue variations XX:XX and XX etc are catched
;Chapters and formatted Special:
  • Chapters are preserved
  • Formatting of '''Special:''' destroyed by the Tracklist Editor API (bug)
Part 2 tracks should not be highlighted red
Original = Candidate No changes as expected. And adds + highlights new tracks e.g. by adding a trackname for [39] in Candidate. No Candidate diff (identical)
Candidate tracks with missing brackets around versions are found as new tracks (042, 113)
+ Acapella The Acapella should not be [04]

I try to run them all again with new updates, but some may fail, esp. the diff may behave differently from version to version.

Diff rules

Inputs

Original

Copy from mix page

  • Do not change given dur, track or label.
  • Do not remove any tracks.
  • Only add new information.

Merged

Copy-ready result. You can change the tracklist here and the diff will update.

Candiate

Paste e.g. a TID tracklist

  • Take each track with text (not ?). When found in the Original, add dur and label (if exists) to the matched track in Original.
  • When the next Candidate track after the match is ?, then use the dur and add it to the next track after the matched track in Original.
  • Match a track also when Original has no version and Candidate has these version variants (ignored): Extended|Main|Original|Remaster Mix|Edit|Version etc

Diff

Debug