diff --git a/downloader/extensions/yandex/models/album.py b/downloader/extensions/yandex/models/album.py index f5c5282..ceda01e 100644 --- a/downloader/extensions/yandex/models/album.py +++ b/downloader/extensions/yandex/models/album.py @@ -80,5 +80,6 @@ async def prepare(self, session: ClientSession) -> None: self.title = artists + " - " + self.title # type: ignore for volume in meta_info["volumes"]: - self.volumes.append([Track(self.id, track["id"], alone=False, quality=self.quality) - for track in volume]) + self.volumes.append([ + Track(self.id, str(track["id"]), alone=False, quality=self.quality) for track in volume + ]) diff --git a/downloader/extensions/yandex/models/artist.py b/downloader/extensions/yandex/models/artist.py index 2ca1280..a1abbc4 100644 --- a/downloader/extensions/yandex/models/artist.py +++ b/downloader/extensions/yandex/models/artist.py @@ -65,5 +65,4 @@ async def prepare(self, session: ClientSession) -> None: self.name = meta_info["artist"]["name"] for album in meta_info["albums"]: - # Album["id"] is integer self.albums.append(Album(str(album["id"]), alone=False, quality=self.quality)) diff --git a/downloader/extensions/yandex/models/label.py b/downloader/extensions/yandex/models/label.py index 110671a..91190f8 100644 --- a/downloader/extensions/yandex/models/label.py +++ b/downloader/extensions/yandex/models/label.py @@ -56,4 +56,4 @@ async def prepare(self, session: ClientSession) -> None: self.name = meta_info["label"]["name"] for album in meta_info["albums"]: - self.albums.append(Album(album["id"], quality=self.quality)) + self.albums.append(Album(str(album["id"]), quality=self.quality)) diff --git a/downloader/extensions/yandex/models/playlist.py b/downloader/extensions/yandex/models/playlist.py index 20db1a3..fbcf4c8 100644 --- a/downloader/extensions/yandex/models/playlist.py +++ b/downloader/extensions/yandex/models/playlist.py @@ -66,4 +66,4 @@ async def prepare(self, session: ClientSession) -> None: self.name = meta_info["playlist"]["title"] for track in meta_info["playlist"]["tracks"]: - self.tracks.append(Track(track["albums"][0]["id"], track["id"], quality=self.quality)) + self.tracks.append(Track(str(track["albums"][0]["id"]), str(track["id"]), quality=self.quality))