libcue provides an API for parsing and extracting data from CUE sheets.