From eaa787fd345a25eeeca9a460ede4778091e7142f Mon Sep 17 00:00:00 2001 From: Eric B Munson Date: Tue, 29 Oct 2024 10:16:55 -0400 Subject: [PATCH] Update to 5.2.1 to fix a missing comma New disc_number field had a missing comma in the initializer. Signed-off-by: Eric B Munson --- CHANGELOG.md | 4 ++++ src/libopensonic/_version.py | 2 +- src/libopensonic/media/song.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9457cb1..7dbc81d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +##5.2.1 + +Add missing comma in song.py because dufus + ##5.2.0 Remove warning on missing artist Sort Name field as this field is not required by the diff --git a/src/libopensonic/_version.py b/src/libopensonic/_version.py index 251b283..fb7858a 100644 --- a/src/libopensonic/_version.py +++ b/src/libopensonic/_version.py @@ -17,4 +17,4 @@ #Semantic versioning string for the library -__version__ = '5.2.0' +__version__ = '5.2.1' diff --git a/src/libopensonic/media/song.py b/src/libopensonic/media/song.py index 10665d0..0bf6f4a 100644 --- a/src/libopensonic/media/song.py +++ b/src/libopensonic/media/song.py @@ -46,7 +46,7 @@ def __init__(self, info): self._is_video = get_key(info, 'isVideo') self._path = get_key(info, 'path') self._track = get_key(info, 'track', 1) - self._disc_number = get_key(info, 'discNumber' 1) + self._disc_number = get_key(info, 'discNumber', 1) self._type = get_key(info, 'type') self._year = get_key(info, 'year') super().__init__(info)