diff --git a/components/decoder/cuesheet/cuesheet.cpp b/components/decoder/cuesheet/cuesheet.cpp index 42359a6a..b8516fc4 100644 --- a/components/decoder/cuesheet/cuesheet.cpp +++ b/components/decoder/cuesheet/cuesheet.cpp @@ -175,6 +175,15 @@ Error BoCA::DecoderCueSheet::GetStreamInfo(const String &streamURI, Track &track if (!trackMode && !dataMode) albumInfo.year = year; } + if (line.StartsWith("REM DISCNUMBER ")) + { + Int disc = line.Tail(line.Length() - 15).ToInt(); + + if (!readInfoTags || preferCueSheets) info.disc = disc; + + if (!trackMode && !dataMode) albumInfo.disc = disc; + } + if (line.StartsWith("REM COMMENT ")) { String comment;