extra if statement `if raw:` and comments
This commit is contained in:
parent
2c59279c83
commit
980156ea92
|
|
@ -117,6 +117,7 @@ class Client:
|
|||
|
||||
cls.tracks = tracks
|
||||
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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue