Repository navigation
c: v0.8.0
Many tracklists write the record label after the title, behind a spaced bullet, sometimes with a note after a second one. 0.7 kept all of it in the title and could move a version past the label. 0.8.0 reads the label into a new field, label, in all five ports (rule R8.7).
import { format, parse } from "trackparse";
const t = parse("Scrufizzer & Machinedrum - WHO (K-LONE VIP) • IAMSIAM");
t.title; // 'WHO'
t.fullTitle; // 'WHO (K-LONE VIP)'
t.label; // 'IAMSIAM'
const n = parse("Noisia - concussion • VISION • VISION RADIO RELOAD");
n.label; // 'VISION'
n.junk; // [ { raw: 'VISION RADIO RELOAD', kind: 'note' } ]
format(n); // 'Noisia - concussion • VISION'
format(n, { label: false }); // 'Noisia - concussion'What's new
labelon every parsed track: the text after the first spaced bullet (U+2022•) that follows the artist/title dash, as written.nullwhen there is none. It is not the junk kindlabel([NCS Release]), which stays as it was.- Junk kind
notefor every segment after the label (VISION RADIO RELOADabove). A segment made only of junk phrases (• FREE DOWNLOAD) is junk with that phrase's kind, and junk groups in the tail ([Official Video]) are junk as before. formatwrites the label back as• LABEL. Turn it off withlabel: false(Pythonlabel=False, Rust.label(false), GoOmitLabel: true, Ctrackparse_format_options_set_omit_label(o, true), C++omit_label()).- In C,
labelis the last member oftrackparse_trackandTRACKPARSE_JUNK_NOTEis the last junk kind (value 9), so code built against 0.7 keeps working for what it already reads. In Python,labelis the last field ofParsedTrack, andParsedTrack.from_dictreads dicts without it.
Behaviour changes
Only strings with a spaced bullet after the artist/title dash change. No existing fixture changed except by gaining "label": null.
Mono Code - Traced • DUBused to lose its artist (the whole title side was read as a dub version). Now: artistMono Code, titleTraced, labelDUB.Noisia - Stigma ft. X • VISION: the featured artist isX, notX • VISION.Noisia - Stigma • HOSPITAL (2024): the year now stays in the label (HOSPITAL (2024)), soyearisnull.Noisia - Stigma • FREE DOWNLOAD: the title isStigma, notStigma •.Hey Jude - Remastered 2015 • Xnow has the artistHey Jude: the text before the first bullet is split at its first dash, as tracklist mode always did.- A bullet inside a title (
Song • Part 2) is read as a label too. - Rust:
JunkKind::from_name("note")now givesJunkKind::Noteinstead ofOther.
0.8.0 (2026-11-15)
Features
- c: R8.7 bullet suffix: trackparse_track.label, TRACKPARSE_JUNK_NOTE, trackparse_format_options_set_omit_label; C++ label(), omit_label() (0104542)
Documentation
- C install links and notes point at 0.7.1, the first C release with files (931c499)
- the label field, junk kind note and the format label option in every README; fixture counts (a6f19dd)
Install
include(FetchContent)
FetchContent_Declare(trackparse
URL https://github.com/4matic/trackparse/releases/download/c-v0.8.0/trackparse-c-0.8.0.tar.gz
URL_HASH SHA256=4d69d0386a9aa5b2e206e4f167f624fbc066b3df0f867d391810db81dee86aa6)
FetchContent_MakeAvailable(trackparse)
target_link_libraries(app PRIVATE trackparse::trackparse)Or copy trackparse.c, trackparse.h and trackparse.hpp from trackparse-c-0.8.0-amalgamation.zip. Implements spec 0.8.0 (SPEC.md).