From 8fde71e0f2cf51e0bcaebbc3a7c70e7cee42b9f7 Mon Sep 17 00:00:00 2001 From: Crussader <75786691+Crussader@users.noreply.github.com> Date: Mon, 28 Mar 2022 09:13:49 +0400 Subject: [PATCH] Update client.py --- pomice/spotify/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pomice/spotify/client.py b/pomice/spotify/client.py index f5d2113..608255d 100644 --- a/pomice/spotify/client.py +++ b/pomice/spotify/client.py @@ -94,13 +94,13 @@ class Client: cls = Playlist(data, []) else: urls = [REQUEST_URL.format(type="album", id=album['id'])+'/tracks' - for album in (data['items'] if not other else other['items'])] + for album in other['items']] cls = Artist(data, []) processes = [_fetch_async(url, count) - for url, count in enumerate(urls[:9] if not full else urls, start=1)] + for url, count in enumerate(urls, start=1)] try: await asyncio.gather(*processes)