Function disc_folder

Source
pub fn disc_folder(name: &str) -> Option<u32>
Expand description

The disc a folder name announces, when it announces one.

A box set is very often laid out as Album/Disc 1, Album/CD2, Album/Disque 3. Those folders are not separate albums, and treating them as such splits one release into three — which is what happened: a Final Fantasy VII soundtrack came back as two albums of the same name, each numbering its tracks from one, with nothing on screen saying which disc was which except the path.

Recognised: disc, disk, cd, disque, followed by digits, with or without a space or a dash. Anything else is a folder like any other — a name that merely contains the word is left alone, because CD Singles is a collection and not a disc of one.