Skip to content

What it understands

Every row below is a real result of parse(input) with default options, except the two marked youtube. Click an input to open it in the playground and see the full output.

The results are the same in JavaScript, Python, Rust, Go and C, because all five follow one spec. The values are shown as they appear in JSON: remix, bySplit. In Rust they are enum variants such as VersionType::Remix and Warning::BySplit. In Go they are typed string constants such as trackparse.VersionTypeRemix and trackparse.WarningBySplit, whose values are these same names. In C they are enum values such as TRACKPARSE_VERSION_REMIX and TRACKPARSE_WARNING_BY_SPLIT, and functions such as trackparse_version_type_name return these names. The columns are fields of ParsedTrack.

Input Artists Title Versions and other fields
Noisia feat. Foreign Beggars - Shellshock Noisia, Foreign Beggars (feat) Shellshock
Silk City - Electricity (with Dua Lipa) Silk City, Dua Lipa (feat) Electricity
Skrillex & Diplo x Justin Bieber - Where Are Ü Now Skrillex, Diplo, Justin Bieber Where Are Ü Now
Future - Mask Off (prod. by Metro Boomin) Future, Metro Boomin (producer) Mask Off
Linkin Park - Numb (Remix by Skrillex) Linkin Park Numb remix by Skrillex
Dimension - Offshore (Mefjus Remix / Noisia Remix) Dimension Offshore two remixes
Pendulum - Watercolour (Extended VIP Mix) Pendulum Watercolour vip, +extended
Noisia - Stigma (Phace Bootleg) Noisia Stigma bootleg by Phace
Deadmau5 - Strobe (Radio Edit) Deadmau5 Strobe radio
Netsky - Iron Heart (Levela Mix) Netsky Iron Heart remix by Levela
The Beatles - Hey Jude - Remastered 2015 The Beatles Hey Jude remaster, 2015
Taylor Swift - Love Story (Taylor's Version) Taylor Swift Love Story version, "Taylor's"
Kordhell - Murder In My Mind (Slowed + Reverb) Kordhell Murder In My Mind slowed
Eminem - Without Me (Explicit) Eminem Without Me explicit flag
Daft Punk - One More Time (Official Music Video) [HD] Daft Punk One More Time junk: video, quality
Elektronomia - Sky High [NCS Release] Elektronomia Sky High junk: label
Noisia - concussion • VISION • VISION RADIO RELOAD Noisia concussion label VISION, junk: note
Porter Robinson - Shelter - YouTube Porter Robinson Shelter junk: platform
01. Aphex Twin - Xtal Aphex Twin Xtal position 1
[12:34] Noisia - Stigma Noisia Stigma timestamp 754 s
07_Burial_-_Archangel.mp3 Burial Archangel filename mode, position 7
"Numb" by Linkin Park (youtube) Linkin Park Numb warning bySplit
Blink-182-All The Small Things (youtube) Blink-182 All The Small Things warning unspacedDashSplit
Кино - Группа крови (Remastered 2019) Кино Группа крови remaster, 2019
ID - ID (ID Remix) ID unknown artist, title and remixer
AC/DC - Back In Black AC/DC Back In Black
2 Unlimited - No Limit 2 Unlimited No Limit not a track number
Mumford & Sons - Little Lion Man Mumford & Sons Little Lion Man not split
The Rolling Stones - (I Can't Get No) Satisfaction The Rolling Stones (I Can't Get No) Satisfaction kept as is

A few of these deserve a comment.

2 Unlimited is not track 2. A leading number only counts as a track number when it's written like one: 01. or 1), a zero-padded 01 , 3 - Artist - Title, or 07_ in a file name. A plain 2 in front of a word is part of the name, which is what you want for 2 Unlimited, 50 Cent and 808 State. The rule is R4.2, and Track numbers has more examples.

Mumford & Sons stays whole. & is a joiner, but & Sons, & Co. or & His Orchestra never start a second artist. & The does split, on purpose: Noisia & The Upbeats is two acts (R7.3, with the list in no-split-before.json). Chase & Status splits too, because nothing in the string tells it apart from two artists. Names like that go in knownArtists (known_artists in Python and Rust, KnownArtists in Go, trackparse_parse_options_add_known_artist in C).

The Rolling Stones keep their brackets. (I Can't Get No) is not a version, a feat or junk, so it stays in the title. That's the rule: anything unrecognized is left alone (R5.8).

Two rows needed mode: "youtube". "Numb" by Linkin Park and Blink-182-All The Small Things are fine guesses on YouTube and bad ones in a music library, so the default clean mode won't make them. In youtube mode it does, and it tells you through warnings (bySplit and unspacedDashSplit). In Python the option is mode="youtube", in Rust ParseOptions::new().mode(ModeOption::Youtube), in Go trackparse.ParseOptions{Mode: trackparse.ModeYouTube}, in C trackparse_parse_options_set_mode(options, TRACKPARSE_MODE_YOUTUBE). See Modes and the mode option.

Radio show tracklists often write the record label after the title, behind a bullet, and sometimes a note after a second one:

Input Artists Title Other fields
Tom Finster - Age Of Spin • WEAREHUMANS Tom Finster Age Of Spin label WEAREHUMANS
Scrufizzer & Machinedrum - WHO (K-LONE VIP) • IAMSIAM Scrufizzer, Machinedrum WHO vip by K-LONE, label IAMSIAM
Noisia - concussion • VISION • VISION RADIO RELOAD Noisia concussion label VISION, junk: note VISION RADIO RELOAD
Noisia • Phace - Stigma • VISION Noisia • Phace Stigma label VISION
Noisia - Stigma • HOSPITAL (2024) Noisia Stigma label HOSPITAL (2024), no year
Noisia - Stigma • HOSPITAL [Official Video] Noisia Stigma label HOSPITAL, junk: video, mode youtube
Noisia - Stigma • FREE DOWNLOAD Noisia Stigma no label, junk: promo, mode youtube
Noisia - Stigma • Part 2 Noisia Stigma label Part 2 (see below)

The rule is R8.7. It fires on a spaced bullet: • (U+2022) with a space on each side, outside every bracket, somewhere after the first spaced dash. Everything after the first such bullet is the tail, cut at each spaced bullet:

  • The first tail segment is label, as written (case kept, no lookup). Each later segment goes to junk with the kind note.
  • A bracket of junk in the tail goes to junk as usual, and a segment made only of junk phrases (FREE DOWNLOAD, OUT NOW) becomes junk instead of a label. Other brackets stay in the label word for word, so HOSPITAL (2024) sets no year.
  • The track itself is the part before the first bullet. Versions, features, junk and the year come from there only, which is why WHO (K-LONE VIP) • IAMSIAM keeps its VIP as a version.
  • Auto mode still sees the tail: • FREE DOWNLOAD and • HOSPITAL [Official Video] pick youtube mode, as they would without the bullet. The mode then decides how the head is read: Noisia - Stigma HD • VISION HD ends with the phrase HD, so it is a YouTube title, and youtube mode takes the HD off the head too (title Stigma, junk quality HD, label VISION HD).

It does not fire, and the bullet stays where it is, when:

  • the bullet is not spaced (Noisia - Stigma•VISION) or is inside brackets (Noisia - Stigma (A • B Remix): a remix by A • B);
  • it comes before the dash (Noisia • Stigma - VISION: artist Noisia • Stigma), or there is no spaced dash at all (Intro • VISION, Noisia | Stigma • VISION);
  • the dot is a different character: · (U+00B7), ∙ (U+2219) and ● (U+25CF) are not bullets;
  • a segment is empty (Noisia - Stigma • • VISION).

One accepted false positive: a bullet that is part of the title reads as a label too. Noisia - Stigma • Part 2 gives the title Stigma and the label Part 2. Quotes don't protect it either: Noisia - "Stigma • VISION" gives the title "Stigma and the label VISION". The junk kind label is something else: a label name in brackets such as [NCS Release], which leaves the label field null. format writes the label back after the title.

Lines of a pasted tracklist go through parseTracklist (parse_tracklist in Python and Rust, ParseTracklist in Go, trackparse_parse_tracklist in C; the Tracklist API has every field), which also reads list bullets, Markdown emphasis and w/ lines. Each input below is one line; click it to open it in the playground's tracklist tab.

Line Artists Title Other fields
* 00:00 Noisia - Stigma Noisia Stigma time 0 s, bullet in lead
**[**00:00**] 10. Nitepunk - ID** Nitepunk ID time 0 s, position 10, ** kept in parts
00:00 **Noisia** - _Stigma_ Noisia Stigma time 0 s
w/ Nitepunk & Habstrakt - Point Nitepunk, Habstrakt Point layered
00:00 P*nk - Raise Your Glass P*nk Raise Your Glass the star stays

For the exact shape of the result, see parse and ParsedTrack.