add coverSize

This commit is contained in:
zhaarey
2024-05-05 19:32:23 +08:00
parent 3f07e1ab7d
commit 9b89c48a07
5 changed files with 7 additions and 5 deletions

View File

@@ -58,5 +58,5 @@ class SongMetadata(BaseModel):
def set_lyrics(self, lyrics: str):
self.lyrics = lyrics
async def get_cover(self, cover_format: str):
self.cover = await get_cover(self.cover_url, cover_format)
async def get_cover(self, cover_format: str, cover_size: str):
self.cover = await get_cover(self.cover_url, cover_format, cover_size)