Skip to content

rust: v0.8.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 14:42
a1e1c4b

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

  • label on every parsed track: the text after the first spaced bullet (U+2022 •) that follows the artist/title dash, as written. null when there is none. It is not the junk kind label ([NCS Release]), which stays as it was.
  • Junk kind note for every segment after the label (VISION RADIO RELOAD above). 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.
  • format writes the label back as • LABEL. Turn it off with label: false (Python label=False, Rust .label(false), Go OmitLabel: true, C trackparse_format_options_set_omit_label(o, true), C++ omit_label()).
  • In C, label is the last member of trackparse_track and TRACKPARSE_JUNK_NOTE is the last junk kind (value 9), so code built against 0.7 keeps working for what it already reads. In Python, label is the last field of ParsedTrack, and ParsedTrack.from_dict reads 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 • DUB used to lose its artist (the whole title side was read as a dub version). Now: artist Mono Code, title Traced, label DUB.
  • Noisia - Stigma ft. X • VISION: the featured artist is X, not X • VISION.
  • Noisia - Stigma • HOSPITAL (2024): the year now stays in the label (HOSPITAL (2024)), so year is null.
  • Noisia - Stigma • FREE DOWNLOAD: the title is Stigma, not Stigma •.
  • Hey Jude - Remastered 2015 • X now has the artist Hey 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 gives JunkKind::Note instead of Other.

0.8.0 (2026-11-15)

Features

  • rust: R8.7 bullet suffix: ParsedTrack.label, JunkKind::Note, FormatOptions::label (d2329ac)

Documentation

  • the label field, junk kind note and the format label option in every README; fixture counts (a6f19dd)

Install

cargo add trackparse@0.8.0

crates.io: https://crates.io/crates/trackparse/0.8.0 · docs: https://docs.rs/trackparse/0.8.0