Skip to content

Commit

Permalink
Fix missing song parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kutu committed Oct 26, 2024
1 parent 564277e commit bc2bc41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies = [
"python-dateutil>=2.8.2"
]

version = "1.1.0"
version = "1.1.1"
readme = "README.md"

authors = [
Expand Down
3 changes: 3 additions & 0 deletions src/knuckles/models/_song.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bc2bc41

Please sign in to comment.