extra if statement `if raw:` and comments

This commit is contained in:
Crussader 2022-03-28 09:04:38 +04:00 committed by GitHub
parent 2c59279c83
commit 980156ea92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -116,7 +116,8 @@ class Client:
cls.tracks = tracks
if cls.total_tracks == 0:
if cls.total_tracks == 0:
# for artists i use len(tracks) so it will be zero at first
cls.total_tracks = len(tracks)
return cls
@ -142,9 +143,6 @@ class Client:
data = await resp.json(loads=json.loads)
if raw:
return data
if spotify_type == 'track':
return Track(data)
elif spotify_type == 'album':