Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [1.1.1] - 2026-03-07

### Added
- Replaygain [+-]a.bb dB pattern support.
- Support for *REM COMPOSER*, *ISRC* and *PREGAP* keywords without parsing their values.

## [1.1.0] - 2026-01-10

Expand Down Expand Up @@ -121,7 +124,8 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Dataclasses for data models.


[Unreleased]: https://github.com/Olezhich/CueTools/compare/v1.1.0...main
[Unreleased]: https://github.com/Olezhich/CueTools/compare/v1.1.1...main
[1.1.1]: https://github.com/Olezhich/CueTools/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/Olezhich/CueTools/compare/v1.0.3...v1.1.0
[1.0.3]: https://github.com/Olezhich/CueTools/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/Olezhich/CueTools/compare/v1.0.1...v1.0.2
Expand Down
4 changes: 4 additions & 0 deletions cuetools/parser/lex.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ class Token(Enum):

DISCID = r'(DISCID)\b'
COMMENT = r'(COMMENT)\b'
COMPOSER = r'(COMPOSER)\b'

TRACK = r'TRACK (\d\d+)\b'
AUDIO = r'(AUDIO)\b'
INDEX = r'INDEX (\d\d)\b'

ISRC = r'(ISRC)\b'
PREGAP = r'(PREGAP)\b'

ARG_QUOTES = r'"(.*)"'
ARG = r'(.*)'

Expand Down
6 changes: 6 additions & 0 deletions cuetools/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def load_f_iter(cue: Iterator[str], strict_title_case: bool = False) -> AlbumDat
filepath.lexeme,
filepath.pos,
)
case Token.ISRC:
...
case Token.PREGAP:
...
case Token.REM:
rem_type = tokens[1]
value = tokens[2]
Expand Down Expand Up @@ -176,6 +180,8 @@ def load_f_iter(cue: Iterator[str], strict_title_case: bool = False) -> AlbumDat
...
case Token.COMMENT:
...
case Token.COMPOSER:
...
case _:
raise CueParseError(
current_line,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cuetools"
version = "1.1.0"
version = "1.1.1"
description = "Lightweight CUE sheet toolkit for Python"
authors = [
{name = "Olezhich"}
Expand Down
2 changes: 2 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def test_line_parsing():

cue_sheet = """FILE "track.flac" WAVE
TRACK 01 AUDIO
ISRC GBAYE1001378
REM COMPOSER ""
INDEX 00 00:00:50
INDEX 01 00:00:65"""
cue = cuetools.loads(cue_sheet)
Expand Down