Probably using ID3 tags, as all media players do Look at MussOrgsky, it's in Python but translating can be easy sometimes.