From bc2bc41b17caeeee331fdecf989ce97c8c8f4f18 Mon Sep 17 00:00:00 2001 From: Kutu Date: Sat, 26 Oct 2024 19:25:25 +0200 Subject: [PATCH] Fix missing song parameter --- pyproject.toml | 2 +- src/knuckles/models/_song.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fb7447c..a89019c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ dependencies = [ "python-dateutil>=2.8.2" ] -version = "1.1.0" +version = "1.1.1" readme = "README.md" authors = [ diff --git a/src/knuckles/models/_song.py b/src/knuckles/models/_song.py index 3bc5e5e..029a2d9 100644 --- a/src/knuckles/models/_song.py +++ b/src/knuckles/models/_song.py @@ -86,6 +86,7 @@ class Song(Model): moods (list[str] | None): List off all the moods of the song. replay_gain (ReplayGain | None): All the info about the replay gain of the song. + media_type (str | None): The type of media of the song. """ def __init__( @@ -136,6 +137,7 @@ def __init__( displayComposer: str | None = None, moods: list[str] | None = None, replayGain: dict[str, Any] | None = None, + mediaType: str | None = None, ) -> None: super().__init__(subsonic) @@ -198,6 +200,7 @@ def __init__( self.replay_gain = ( ReplayGain(self._subsonic, **replayGain) if replayGain else None ) + self.media_type = mediaType def generate(self) -> "Song": """Return a new song object with all the data updated from the API,