added subscript checking
This commit is contained in:
parent
ff6d2a9e25
commit
b2d7c2c078
@ -118,7 +118,7 @@ class Network:
|
||||
else:
|
||||
logger.warning(f'{playlistid} no response or items')
|
||||
|
||||
if resp['next']:
|
||||
if resp.get('next', None):
|
||||
tracks += self.get_playlist_tracks(playlistid, offset + limit)
|
||||
|
||||
return tracks
|
||||
|
Loading…
Reference in New Issue
Block a user