From b9254f5b9baf35107cae0c91cf9d979fbbfa14aa Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 19 May 2022 17:33:42 -0500 Subject: Añadida descarga, búsqueda de álbum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ampache/models.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ampache/models.py') diff --git a/src/ampache/models.py b/src/ampache/models.py index 9508b2e..452b1c5 100644 --- a/src/ampache/models.py +++ b/src/ampache/models.py @@ -25,6 +25,17 @@ class Song: return f"{self.title} by {self.artist}" +@dataclass +class Album: + album_id: str + title: str + artist: str + songs: list[Song] + + def __str__(self): + return f"{self.title} by {self.artist}" + + @dataclass class Error: code: int -- cgit v1.2.3